Unknown cache resource

  • The following code works perfectly in K2Core.class.php but in MenuListPage.class.php it doesn't.

    Code
    protected function renderMenu() {
    // get menu structure from cache
    $this->menuStructure = WCF::getCache()->get('menu', 'menuStructure');
    // get menu items from cache
    $this->menuItems = WCF::getCache()->get('menu', 'menuItems');
    $this->makeMenuList();
    }


    The code in K2Core is used to build the menu on the left, while MenuListPage.class.php is a page in the ACP for menu administration.
    Preview: http://beta.k2-solutions.eu
    Error in ACP:


    Obviously cache.menu.php exists in /cache (cache folder of standalone application not the WCF cache folder).
    Any ideas?


    Thank you

    And if someone gave you a pile of gold, you'd probably complain that it was too heavy.

  • Sorry guys, my own stupid mistake. :whistling:
    I forgot to load the resource in K2ACP.class.php


    Looks like taking a break after coding for 8+ hours was useful.

    And if someone gave you a pile of gold, you'd probably complain that it was too heavy.

  • hehe, sounds familiar to me :D

    Plugin-Support ausschließlich über die WCom Supportforen des jeweiligen Plugins. Ich mach bis auf weiteres 'Urlaub' von der wCom ;)