[*] MO: Add smarty cache on some modules
This commit is contained in:
@@ -93,11 +93,12 @@ class Blockmyaccountfooter extends Module
|
||||
{
|
||||
global $smarty;
|
||||
|
||||
$smarty->assign(array(
|
||||
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
||||
));
|
||||
return $this->display(__FILE__, $this->name.'.tpl');
|
||||
if (!$this->isCached('blockmyaccountfooter.tpl', $this->getCacheId()))
|
||||
$smarty->assign(array(
|
||||
'voucherAllowed' => CartRule::isFeatureActive(),
|
||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock')
|
||||
));
|
||||
return $this->display(__FILE__, 'blockmyaccountfooter.tpl', $this->getCacheId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user