/** * @see TreeMenu::loadCache() */ protected function loadCache() { parent::loadCache(); WCF::getCache()->addResource('userProfileMenu-' . PACKAGE_ID, WCF_DIR . 'cache/cache.userProfileMenu-' . PACKAGE_ID . '.php', WCF_DIR . 'lib/system/cache/CacheBuilderUserProfileMenu.class.php'); $this->menuItems = WCF::getCache()->get('userProfileMenu-' . PACKAGE_ID); EventHandler::fireAction($this, 'loadedCache'); }
/** * @see TreeMenu::loadCache() */ protected function loadCache() { parent::loadCache(); if (PACKAGE_ID == 0) { return; } WCF::getCache()->addResource('menu-' . PACKAGE_ID, WCF_DIR . 'cache/cache.menu-' . PACKAGE_ID . '.php', WCF_DIR . 'lib/system/cache/CacheBuilderACPMenu.class.php'); $this->menuItems = WCF::getCache()->get('menu-' . PACKAGE_ID); }
/** * @see TreeMenu::loadCache() */ protected function loadCache() { parent::loadCache(); WCF::getCache()->addResource('userCPMenu-' . PACKAGE_ID, WCF_DIR . 'cache/cache.userCPMenu-' . PACKAGE_ID . '.php', WCF_DIR . 'lib/system/cache/CacheBuilderUserCPMenu.class.php'); $this->menuItems = WCF::getCache()->get('userCPMenu-' . PACKAGE_ID); }
/** * @see TreeMenu::loadCache() */ protected function loadCache() { parent::loadCache(); WCF::getCache()->addResource('contestMenu', WCF_DIR . 'cache/cache.contestMenu.php', WCF_DIR . 'lib/system/cache/CacheBuilderContestMenu.class.php'); $this->menuItems = WCF::getCache()->get('contestMenu'); }