Skip to content

Commit

Permalink
Enable cache for modules load in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Sep 18, 2015
1 parent a481954 commit bb4a4db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/plg_system_t3/includes/menu/megamenu.php
Expand Up @@ -325,13 +325,13 @@ function module($module) {
->where('m.access IN ('.implode(',', $this->settings['access']).')');
$db->setQuery($query);
$module = $db->loadObject();
$doc = JFactory::getDocument();

//check in case the module is unpublish or deleted
if ($module && $module->id) {
$style = 'T3Xhtml';
$content = JModuleHelper::renderModule($module, array(
'style' => $style
));
$content = $doc->getBuffer('module', $module->module,
array('title'=>$module->title, 'style'=>$style));

$app = JFactory::getApplication();
$frontediting = $app->get('frontediting', 1);
Expand Down

0 comments on commit bb4a4db

Please sign in to comment.