Skip to content

Commit

Permalink
[-] MO: Fix time of smarty cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
rGaillard committed Sep 20, 2013
1 parent 4f63932 commit 5b7580d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/module/Module.php
Expand Up @@ -1727,6 +1727,8 @@ public function isCached($template, $cacheId = null, $compileId = null)
protected function _clearCache($template, $cache_id = null, $compile_id = null)
{
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::restoreCacheSettings();
}
Expand Down

1 comment on commit 5b7580d

@gRoussac
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear all,

Please see this other commit on the matter.

ccb3179

This will be refactored again in few times.

Best regards

Please sign in to comment.