Tip 1 – How to remove Prestashop’s Smarty cache in Filezilla

Sometimes you make a change to Prestashop and nothing happens. You think you’re working in the wrong file or the back end doesn’t work properly. Well it may be a cache problem.

Using the Smarty template engine is a good thing!

Prestashop makes use of the Smarty template engine which is good! Cause it separates the difficult PHP code from the easier to understand HTML code. And it helps with a huge Performance boost! But Smarty saves the templates it makes in a cache directory so next time you open the site it’s already loaded. This is good when visiting the webshop but not when you’re in development.

How to delete/remove Smarty cache in Filezilla

To delete/remove Smarty cache in Filezilla you need to do the following:

  1. Open Filezilla;
  2. Connect to your host; (Think your hosting is cheap? try HostingXs)
  3. Go to the following folder: /tools/smarty/cache and delete everything that is in there.
  4. Go to the following folder: /tools/smarty/compile and delete everything that is in the except the index.php file!

Now if don’t see any files in these folders you might be using Smarty_v2 to delete Smarty_v2 cache you need to do the following:

  1. Open Filezilla;
  2. Connect to your host; (Think your hosting is cheap? try HostingXs)
  3. Go to the following folder: /tools/smarty_v2/cache and delete everything that is in there.
  4. Go to the following folder: /tools/smarty_v2/compile and delete everything that is in the except the index.php file!

Turn Smarty cache of in the Prestashop back end

To turn the off the Smarty cache function (not recommended! only for debugging) you need to follow these steps:

  1. Go to your back-end;
  2. Go to the Preferences tab;
  3. Go to the Performance tab;
  4. Turn off Smarty cache;

I hope this helps everybody that didn’t no what caching was. And I hope it saves a lot of frustration.

Tags: , , , , , , ,

One Response to “Tip 1 – How to remove Prestashop’s Smarty cache in Filezilla”

  1. Michal January 13, 2017 at 3:01 pm #

    Thank you for this article! I almost lost all my hair when I was trying to insert google remarketing tag, I had no idea that smarty cache exist! Also it is moved to another default folder.

Leave a Reply