Skip to content

Commit

Permalink
Rework Dashboard page.
Browse files Browse the repository at this point in the history
The dashboard page is most often the least kept on page
considering most people go in to perform actual tasks. One
of the biggest prolems with this page, however, is it was
highly memory intensive. This memory is (yes it is still present)
caused by the 30 day graph. We have to get all thirty days and gather
the counts individually. This caused a 2 Mb initial display use 7 times
more memory because we had to wait for the page to iterate each date
and make 30 separate calls.

In an attempt to improve the load in performance the page is now immediate
when compared earlier. All the dynamic parts (bandwidth, disk usage, and client
count) are still dynamic, but this also moves the 30 day gathering into a
kind of dynmaic state. Instead of causing a block on the page to gather
the 30 days of info, we use an ajax call to get the information.
  • Loading branch information
mastacontrola committed Jan 15, 2017
1 parent 477234f commit 53a9407
Show file tree
Hide file tree
Showing 11 changed files with 560 additions and 542 deletions.
4 changes: 2 additions & 2 deletions packages/web/lib/fog/system.class.php
Expand Up @@ -53,9 +53,9 @@ private static function _versionCompare()
public function __construct()
{
self::_versionCompare();
define('FOG_VERSION', '13');
define('FOG_VERSION', '14');
define('FOG_SCHEMA', 245);
define('FOG_BCACHE_VER', 111);
define('FOG_BCACHE_VER', 112);
define('FOG_SVN_REVISION', 6052);
define('FOG_CLIENT_VERSION', '0.11.8');
}
Expand Down

0 comments on commit 53a9407

Please sign in to comment.