Clearing cache in PrestaShop is crucial for performance and to have your store running smoothly. Clearing cache will restart the server, fix issues and then apply the changes you made. In this tutorial we will see how to clear cache in PrestaShop with focus on manual methods and Smarty cache.
Why Clear Cache in PrestaShop?
Clearing cache in PrestaShop will fix outdated data, improve your site performance and make your recent changes visible to customers.
PrestaShop uses caching to speed up page loading but sometimes it can cause issues when the cached data is not updated.
How to Clear Cache in PrestaShop
There are many ways to clear cache in PrestaShop including through admin panel, deleting files and focusing on Smarty cache.
Through PrestaShop Admin Panel
The easiest way to clear caches in PrestaShop is through the admin panel. Here’s how to do it:
- Log in to your PrestaShop Admin Panel: Log in with your admin credentials to access the back office of your online store.
- Go to Advanced Parameters: Go to “Advanced Parameters” from the left menu.
- Performance: Click “Performance” to access caching options.
- Clear Cache: You will see the “Clear Cache” button. Click it to clear all cached data.
This is the easiest and recommended for all users.
Manually Clear Cache in PrestaShop
If you prefer a manual way you can clean your cache by deleting specific cache files from the server.
- Access Your Server through FTP: Use an FTP client like FileZilla to access your server.
- Go to Cache Directory: Go to /var/cache/ in PrestaShop installation.
- Delete Cache Files: Delete the entire directory to clean cache.
This way you will delete all cached data and your store will load new data.
Clear Smarty Cache in PrestaShop
Smarty is a template engine used by PrestaShop and has its own caching mechanism. Clearing Smarty cache will fix template modification issues.
- Access Your Server through FTP: Connect to your server via FTP.
- Go to Smarty Cache Directory: Go to /var/cache/smarty/.
- Delete Cache Files: Disable all files in this directory.
Clearing Smarty cache will reflect your template modifications immediately.
More Tips for Cache Management in PrestaShop
- Maintenance: Clearing cache regularly will prevent performance issues.
- Cache Management Modules: There are many modules to automate cache clearing and more.
- Performance Monitor: Watch your website performance metrics to see if you need to clear cache.
Conclusion
Clearing the cache in PrestaShop is essential to maintain the efficiency and performance of your online store. If you clear cache using the admin panel, manually or specifically looking at your Smarty cache, The above strategies make sure that your store is up-to-date and functions optimally. Regularly managing caches can help you avoid issues that are common and ensure that your PrestaShop store operating smoothly.
Discover More Helpful Articles
- Unlock the Power of PrestaShop Debug Mode
- A Comprehensive Guide to PrestaShop 8
- How to Set Up SMTP in PrestaShop
- How to Upgrade PrestaShop 1.7 to 8
- Best Live Chat PrestaShop Modules