mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #27925
[Bug 1467368] A change has been merged
Reviewed: https://reviews.mahara.org/4887
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/ec41d0e056a5268e27b28b4198a0f696c7c47226
Submitter: Aaron Wells (aaronw@xxxxxxxxxxxxxxx)
Branch: master
commit ec41d0e056a5268e27b28b4198a0f696c7c47226
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Mon Jun 22 15:56:51 2015 +1200
Bug 1467368: Allowing the main menu structure to be cached
This will allow the rendering of the main nav to use less resources.
The cached menus are saved for each institution into the
institution_config table for these types of menus:
adminnav - site administration navigation
instadminnav - institution admin navigation
staffnav - site staff admin navigation
inststaffnav - institution staff admin navigation
standardnav - navigation seen in normal section of site
To clear cache menus call clear_menu_cache($institution)
Change-Id: I3b58090830b6d28f10f24e23abeef775c6863aa5
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1467368
Title:
cache the main navigation menu
Status in Mahara:
Fix Committed
Bug description:
Part of rendering the main navigation is it checks all the plugins to
see if they want to add to the menu.
This is not an ideal way of doing it. We should cache the main menu's
$menu array in the database after first render and just use that.
We should also have a clear_menu_cache($institution = null) function
so that when the site or and institution updates it's config the
related cached menus are cleared and able to generate again.
We should also clear the menu cache when plugins are installed /
removed / hidden / shown
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1467368/+subscriptions
References