Why do you get more module cache files in version 1.5.11?
From Joomla! Documentation
(Difference between revisions)
m (Broken modules caching in Joomla! 1.5.11 moved to Modules caching in Joomla! 1.5.11 performance issue: Better description) |
|||
| Line 1: | Line 1: | ||
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. | 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 | + | To revert this back to previous caching behavior you need to edit <code>/libraries/joomla/document/html/renderer/module.php</code> and change the line |
| − | $contents = $cache->get( array('JModuleHelper', 'renderModule'), array( $module, $params ), $module->id. $user->get('aid', 0).md5(JRequest::getURI()) ); | + | <source lang="php">$contents = $cache->get( array('JModuleHelper', 'renderModule'), array( $module, $params ), $module->id. $user->get('aid', 0).md5(JRequest::getURI()) );</source> |
to | to | ||
| − | $contents = $cache->get( array('JModuleHelper', 'renderModule'), array( $module, $params ), $module->id. $user->get('aid', 0) ); | + | <source lang="php">$contents = $cache->get( array('JModuleHelper', 'renderModule'), array( $module, $params ), $module->id. $user->get('aid', 0) );</source> |
| + | |||
| + | [[Category:Version 1.5.11 FAQ]] | ||
Revision as of 06:59, 3 June 2009
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) );