← Back to team overview

mahara-contributors team mailing list archive

[Bug 1467368] [NEW] cache the main navigation menu

 

Public bug reported:

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

** Affects: mahara
     Importance: Medium
     Assignee: Robert Lyon (robertl-9)
         Status: In Progress


** Tags: performance

-- 
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 ePortfolio:
  In Progress

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


Follow ups

References