29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-27 07:33:41 +00:00

[#25852] Cache and mod_menu problem

git-svn-id: http://joomlacode.org/svn/joomla/development/trunk@21450 6f6e1ebd-4c2b-0410-823f-f34bde69bce9
This commit is contained in:
Mark Dexter 2011-06-04 18:56:32 +00:00
parent 016619fdbe
commit c9a6b445fb
2 changed files with 4 additions and 4 deletions

View File

@ -23,9 +23,9 @@ class JMenuSite extends JMenu
* @return array
*/
public function load()
{
{ $user = JFactory::getUser();
$cache = JFactory::getCache('mod_menu', ''); // has to be mod_menu or this cache won't get cleaned
if (!$data = $cache->get('menu_items'.JFactory::getLanguage()->getTag())) {
if (!$data = $cache->get('menu_items'.JFactory::getLanguage()->getTag().$user->id)) {
// Initialise variables.
$db = JFactory::getDbo();
$app = JFactory::getApplication();
@ -42,7 +42,6 @@ class JMenuSite extends JMenu
$query->where('m.client_id = 0');
$query->order('m.lft');
$user = JFactory::getUser();
$groups = implode(',', $user->getAuthorisedViewLevels());
$query->where('m.access IN (' . $groups . ')');

View File

@ -40,7 +40,8 @@ $ -> Language fix or change
# [#25085] Media Manager changes directory after file upload or directory creation
+ Feature [#22590] Make copy/move consistent across components
+ Feature [#25313] Update TinyMCE to version 3.4.2
# [#25852] Cache and mod_menu problem
04-Jun-2011 Andrew Eddie
+ Feature [#25866] Add support to log deprecated API.
+ Feature [#25987] JToolBarHelper functions for Save and Create New and Save as Copy (Joseph LeBlanc).