[*] FO: use subdirectory per template for smarty cache
This commit is contained in:
@@ -32,6 +32,8 @@ global $smarty;
|
||||
$smarty = new Smarty();
|
||||
$smarty->setCompileDir(_PS_CACHE_DIR_.'smarty/compile');
|
||||
$smarty->setCacheDir(_PS_CACHE_DIR_.'smarty/cache');
|
||||
if (!Tools::getSafeModeStatus())
|
||||
$smarty->use_sub_dirs = true;
|
||||
$smarty->setConfigDir(_PS_SMARTY_DIR_.'configs');
|
||||
$smarty->caching = false;
|
||||
$smarty->force_compile = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_FORCE_COMPILE_) ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user