PrestaShop themes use Smarty. If you change a theme, you may need to clear the Smarty cache to see the changes made.

 

Method 1: Use the PrestaShop administration interface

You can use the PrestaShop administration interface to clear the Smarty cache. For this procedure, follow these steps:

  1. Log in to the PrestaShop administration panel with administrator data
  2. In the menu on the left, click ADVANCED PARAMETERS, then click Performance
  3. In the Smarty section, in Template compilation, click Force compilation
  4. For Cache, click NO
  5. Click Save, then refresh the pages you want to view. You should see the changes.

Method 2: Use the SSH or cPanel command line

You can manually clear the Smarty cache using the command line or using the File Manager in cPanel. This method is useful if the PrestaShop administration interface is inaccessible for some reason. For this procedure, follow the steps below:

  1. Log in to cPanel or the SSH terminal
  2. Navigate to the public_html directory
  3. In the directory where you installed PrestaShop, delete the contents of the following directories except the index.php file:
  • img/tmp
  • cache/smarty/cache
  • cache/smarty/compile

4. Check the modified pages.

Was this answer helpful? 0 Users Found This Useful (0 Votes)