Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/menu_helper.php
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | |||||
$menu = unserialize($menu); | $menu = unserialize($menu); | ||||
$this->parentPaths = $menu['parentPaths']; | $this->parentPaths = $menu['parentPaths']; | ||||
} | } | ||||
else { | else { | ||||
$menu = $this->_buildMenuStructure($root_cat); | $menu = $this->_buildMenuStructure($root_cat); | ||||
$menu['parentPaths'] = $this->parentPaths; | $menu['parentPaths'] = $this->parentPaths; | ||||
if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | ||||
$this->Application->setCache('master:cms_menu', serialize($menu)); | $this->Application->setCache('master:cms_menu', serialize($menu), 0); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->setDBCache('cms_menu', serialize($menu)); | $this->Application->setDBCache('cms_menu', serialize($menu), 0); | ||||
} | } | ||||
} | } | ||||
unset($menu['parentPaths']); | unset($menu['parentPaths']); | ||||
$this->Menu = $menu; | $this->Menu = $menu; | ||||
} | } | ||||
return Array ($this->Menu, $root_path); | return Array ($this->Menu, $root_path); | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |