[-] MO: Fix time of smarty cache invalidation
This commit is contained in:
@@ -1727,6 +1727,8 @@ abstract class ModuleCore
|
|||||||
protected function _clearCache($template, $cache_id = null, $compile_id = null)
|
protected function _clearCache($template, $cache_id = null, $compile_id = null)
|
||||||
{
|
{
|
||||||
Tools::enableCache();
|
Tools::enableCache();
|
||||||
|
if ($cache_id === null)
|
||||||
|
$cache_id = Module::getCacheId($this->name);
|
||||||
Tools::clearCache(Context::getContext()->smarty, $this->getTemplatePath($template), $cache_id, $compile_id);
|
Tools::clearCache(Context::getContext()->smarty, $this->getTemplatePath($template), $cache_id, $compile_id);
|
||||||
Tools::restoreCacheSettings();
|
Tools::restoreCacheSettings();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user