Your shopping cart is empty

How to clear cache in PrestaShop?

Sometimes you need to clear the cache to ensure pages display up-to-date data after making changes to the content. How do you do this?

If you're talking about the Smarty cache, you can clear it like this:

  • For PS 1.5, 1.6, 7, 8, 9: go to "Advanced Parameters -> Performance" and click the "Clear cache" button; this button works the same as manually deleting files from the two directories "/cache/smarty/cache/*.tpl.php" and "/cache/smarty/compile/*.tpl.php";
  • For PS 1.4: there's no corresponding button in the admin panel; to do this, delete the contents of the "/tools/smarty/cache/*.tpl.php" and "/tools/smarty/compile/*.tpl.php" directories.

In earlier versions of PS, Smarty caching is disabled by default and is not used in any subsystems (modules), and compiled template files are stored in the same directory as in PS 1.4: "/tools/smarty/compile/*.tpl.php."

When manually deleting files from the specified directories, be careful not to accidentally delete the "index.php" file. This file is needed to prevent "directory browsing" in the browser.

If the question also refers to other caching, such as caching SQL queries using CacheFS, its cache files are stored in the "/cache/cachefs/*" directory (starting with PS 1.4).