[*] MO: Add smarty cache on blockcustomerprivacy
This commit is contained in:
@@ -73,6 +73,7 @@ class Blockcustomerprivacy extends Module
|
|||||||
$message_trads[(int)$id_lang[1]] = $value;
|
$message_trads[(int)$id_lang[1]] = $value;
|
||||||
}
|
}
|
||||||
Configuration::updateValue('CUSTPRIV_MESSAGE', $message_trads, true);
|
Configuration::updateValue('CUSTPRIV_MESSAGE', $message_trads, true);
|
||||||
|
$this->_clearCache('blockcustomerprivacy.tpl');
|
||||||
$output = '<div class="conf confirm">'.$this->l('Configuration updated').'</div>';
|
$output = '<div class="conf confirm">'.$this->l('Configuration updated').'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,9 +188,9 @@ class Blockcustomerprivacy extends Module
|
|||||||
{
|
{
|
||||||
if (!$this->checkConfig())
|
if (!$this->checkConfig())
|
||||||
return;
|
return;
|
||||||
|
if (!$this->isCached('blockcustomerprivacy.tpl', $this->getCacheId()))
|
||||||
|
$this->smarty->assign('privacy_message', Configuration::get('CUSTPRIV_MESSAGE', $this->context->language->id));
|
||||||
|
|
||||||
$this->smarty->assign('privacy_message', Configuration::get('CUSTPRIV_MESSAGE', $this->context->language->id));
|
return $this->display(__FILE__, 'blockcustomerprivacy.tpl', $this->getCacheId());
|
||||||
|
|
||||||
return $this->display(__FILE__, 'blockcustomerprivacy.tpl');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user