Why do you get more module cache files in version 1.5.11?
From Joomla! Documentation
Revision as of 12:21, 3 June 2009 by Dextercowley (talk | contribs) (Modules caching in Joomla! 1.5.11 performance issue moved to Why do I get more module cache files in version 1.5.11?: put in question format for faq)
Revision as of 12:21, 3 June 2009 by Dextercowley (talk | contribs) (Modules caching in Joomla! 1.5.11 performance issue moved to Why do I get more module cache files in version 1.5.11?: put in question format for faq)
Since Joomla! 1.5.11 the modules are cached for every page, so lots of cached files are created for the menu items with lots of pages.
To revert this back to previous caching behavior you need to edit /libraries/joomla/document/html/renderer/module.php
and change the line
$contents = $cache->get( array('JModuleHelper', 'renderModule'), array( $module, $params ), $module->id. $user->get('aid', 0).md5(JRequest::getURI()) );
to
$contents = $cache->get( array('JModuleHelper', 'renderModule'), array( $module, $params ), $module->id. $user->get('aid', 0) );