Jump to content

i cannot stop smarty cache from working...


Recommended Posts

hi everybody,

i followed every tutorial on this subject, still i wasn't able to deactivate smarty cache on my ps installation (1.49) .... so now i'm totally unable to edit .tpl files...

 

here's the list of things i tried to do to fix the issue:

 

1. from BO i set performance/force compile 

2. i deleted via FTP client every files in tools/smarty/cache (but index.php) and tools/smarty/compile (but index.php)

3.i obviously deletetd my browser cache (using google chrome)

 

= no way to see changes after modifying some .tpl files (of my /mytheme folder) 

 

after all this i even tried: 

 

4. using phpMyadmin, on table ps_configuration i set  '0'   for PS_SMARTY_CACHE

5. edited  config/smarty.config.inc.php

  1. define('_PS_SMARTY_DIR_', _PS_TOOL_DIR_.(_PS_FORCE_SMARTY_2_ ? 'smarty_v2' : 'smarty').'/');
  2.  
  3. require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
  4.  
  5. global $smarty;
  6. $smarty = new Smarty();
  7. $smarty->template_dir = _PS_THEME_DIR_.'tpl';
  8. $smarty->compile_dir = _PS_SMARTY_DIR_.'compile';
  9. $smarty->cache_dir = _PS_SMARTY_DIR_.'cache';
  10. $smarty->config_dir = _PS_SMARTY_DIR_.'configs';
  11. $smarty->caching = false;
  12. //$smarty->force_compile = (bool)Configuration::get('PS_SMARTY_FORCE_COMPILE');
  13. $smarty->force_compile = true;
  14. $smarty->compile_check = true;
  15. $smarty->debugging = false;
  16. $smarty->debugging_ctrl = 'URL'; /* 'NONE' on production */
  17.  

so caching = false and commented out

$smarty->force_compile =...

 

to make sure the value was 'true', as i set on line 40

 

6. checked folder tools/smarty_v2/ but it seems it's not active

 

.... so now i really don't know what to do.. after points 1 to 6 i still get 

tools/smarty/cache and tools/smarty/compile

 

generating cache files... how can it be?

 

i'll really appreciate your help and support in this issue....

thank you

Link to comment
Share on other sites

You can delete all of the files in the tools/smarty/compile directory. 

i already did, and first i set 'force compilation' to yes, but it seems that tools/smarty/compile keep generating files every second, so i'm not able to see template files modifications, it takes several hours for them to have effect so i'm not able to really edit the files and try something in maintenance mode... 

Link to comment
Share on other sites

×
×
  • Create New...