How to clear Smarty cache in all versions of PrestaShop?

Smarty language is PrestaShop selection for its templating system. A large number of theme file contents are saved in Smarty cache folder. Sometimes, when you install a new template or enable/disable modules, your website content does not show the latest changes. This is because PrestaShop is still showing the old cached content and not the latest changes made by you.

In this case, the solution is to clear the cache of your PrestaShop store. Depending on the PrestaShop version you are using, the method to clear the cache varies.

For PrestaShop version 1.4.x.x

Manually

In PrestaShop 1.4, you can find cached data stored in these following folders of your PrestaShop’s installation main folder:

  • /tools/smarty/cache
  • /tools/smarty/compile
  • /tools/smarty_v2/cache
  • /tools/smarty_v2/compile

You should delete the content of these folders to clear Prestashop cached data. Reload your website in your web browser to take a look at the changes you have made.

Automatically

  • Login to the Administration panel
  • Select Preferences tab > Performance
  • Check to turn on the “Force compile” feature and disable cache.

For PrestaShop version 1.5.x.x

Clear cache in PrestaShop back office

  • Login to your PrestaShop store back office
  • Navigate to Advanced Parameters > Performance
  • Click on the “Clear Smarty cache & Autoload cache” button
  • Click “Save”

Clear cache manually

Access to your PrestaShop installation directory and delete the content of the following folders, except “index.php” file:

  • cache/smarty/compile
  • cache/smarty/cache
  • img/tmp

Reload your website in browser to apply the changes you have made.

For PrestaShop version 1.6.x.x

Clear Cache in Prestashop back office

  • Login to your PrestaShop store back office
  • Navigate to Advanced Parameters > Performance

  • Select “Force compilation” and disable cache option
  • Click “Save”

  • Refresh your store page.

Clear cache manually

Access to your PrestaShop installation directory and delete the content of the following folders except “index.php” file:

  • cache/smarty/compile
  • cache/smarty/cache
  • img/tmp;

Refresh your website to apply the changes you have made.

Disable CCC for CSS files

  • Login to your PrestaShop admin panel
  • Navigate to Advanced Parameters > Performance;
  • Locate CCC (Combine, Compress, and Cache) section;
  • Disable Smart cache for CSS and other CCC options.

  • Click “Save”
  • Access to “themes/themeXXX/cache” folder (xxx is the theme number) of your PrestaShop installation directory and delete all content except “index.php” file.
  • Refresh your store page.

For PrestaShop 1.7.x.x

  • Login to your PrestaShop admin panel
  • Navigate to Advanced Parameters > Performance;

  • Click on “Clear cache” button

Each time a visitor revisit your store, PrestaShop cache is checked to see if it has changed so that web browser can serve your customers the most up-to-date pages. However, this doesn’t always work. Sometimes, the cache will load its older stored page instead, and you may not always get the newest version. Clearing PrestaShop cache will force your browser to start over, ensuring that your customers are viewing updated pages and information.

Hopefully, this tutorial will give you some useful instruction to manage and clear PrestaShop cache data. If you have any question related to this subject, please leave a comment below this post and I will try my best to answer it.

The post How to clear Smarty cache in all versions of PrestaShop? appeared first on Presta Hero.

Comments

Popular posts from this blog

PrestaShop error 500 – explained and how to troubleshoot

The Greatest Myth About Personalized Write Exposed

Ein einfacher Trick für Responsive Formgebung | Kostenlos Website Erstellen Mit Eigener Domain