tuding Posted April 8, 2012 Share Posted April 8, 2012 The function of "Compile cache if templates are updated" is very Necessary. If the function will be add into the PrestaShop v1.4? Link to comment Share on other sites More sharing options...
El Patron Posted April 8, 2012 Share Posted April 8, 2012 If you creating a module that changes a .tpl file you can use this code: public function install(){ if (!parent::install()) return false; ...... } $this->clearTplCache(); return true; } public function clearTplCache() { global $smarty; $smarty->clearCompiledTemplate('TheTplName.tpl'); } Link to comment Share on other sites More sharing options...
Recommended Posts