6

The original owner of our company had the website designed using Smartys. I have updated the product page, but even after deleting the temporary file from "templates_c" which I thought was the cache file, the updated products page will not show up at all, everything still looks exactly as it did previously.

How can I clear the cache on Smartys so my modified page will be viewable?

Surabhil Sergy
  • 1,946
  • 1
  • 23
  • 40

1 Answers1

16

Smarty uses a compile directory and a separate cache directory. templates_c is probably the compile directory. The cache is specified in $smarty->cache_dir. That's the one you need to empty.

In PHP with Smarty version 2, you can execute the function clear_all_cache()

$smarty->clear_all_cache();

If you are using Smarty version 3, the command is clearAllCache()

$smarty->clearAllCache();

To find out the cache directory:

echo $smarty->cache_dir;
John C
  • 8,223
  • 2
  • 36
  • 47
Michael Berkowski
  • 267,341
  • 46
  • 444
  • 390
  • Thanks, I am going to try that now. How is http://xfactorservers.com/game_servers/ loading a different page from http://xfactorservers.com/game_servers.php? Is that just how it caches it? –  Mar 22 '11 at 17:36