Monday, October 28, 2013

Make Joomla's Nextend Menu faster

If you're using Nextend's Accordion Menu for Joomla, there's a good chance it's slowing you down. Adding this simple patch to make it use cache cut down average loading time by 900 ms on a Joomla 2.5 site.


  • Open libraries/nextend/accordionmenu/treebase.php
  • Find the following part:

        $this->renderItem();
    }
    
    function renderItem() {

  • Replace it with:
        $cache = & JFactory::getCache();
        $cache->call(array($this, 'renderItem'), JURI::getInstance()->toString());
    }
    
    function renderItem($dummy=NULL) {

No comments:

Post a Comment