Magento caches content to improve its performance and loading speed. However, if you made some changes and cannot see them at the front end, it is possible that changes are not appearing because of cache (old content). In this tutorial you will learn 2 different ways to clear Magento cache.
Steps provided below show how to flush the cache on older Magento versions (below 2.x). However, process should be similar on newest version of Magento.
What you’ll need
Before you begin this guide you’ll need the following:
Access to Magento backend
Access to FTP server (Option 2)
Step 1 – Clearing Magento cache
Option 1 – Clearing cache via admin area
First of all, access Magento administrator dashboard. Usually, it is accessed by adding /admin at the end of your domain name. Enter your credentials of administrator area and press login button.
Now access Magento Cache Management section.
Select all blocks by pressing Select All button and press Submit button.
Magento has 4 additional tools to clear different caches:
Flush Magento Cache – Clears files from Magento installation var/cache directory which Magento installation created itself.
Flush Cache Storage – Clears all the files in var/cache no matter if those files were created by Magento installation or manually.
Flush Catalog Images Cache – This button needs to be pressed if you have uploaded new images to your products and old images are still shown on the website instead of new.
Option 2 – Clearing Magento cache manually
It is also possible to clear cache manually. There are two ways to do this:
Use File Manager or FTP client and access Magento installation directory (usually it’s public_html directory).
Access var/cache folder.
To clear the cache, delete all the content from the /var/cache folder.
Step 2 – Re-indexing Magento data
Magento uses a complex database structure and stores a lot of information inside the database (prices, catalog data, clients, etc.). Indexing this data highly improves Magento performance. However, indexing can prevent changes to appear on the front end of your store. If you, for example, changed price of one item and still see old price on the front end, you may need to re-index data:
Firstly access Magento dashboard and navigate to System -> Index Management section:
Select all values by pressing Select All button and then submit the changes with Submit button on the right.
By finishing this tutorial you have learned 2 different ways to clear Magento cache, you also learned how to re-index Magento data. After completing all the steps provided in this tutorial all the data on your store should be refreshed and no cached information should be left.
Linas started as a customer success agent and is now a full-stack PHP developer at Hostinger. He is passionate about making a positive impact on people by utilizing user-driven development techniques. As much as he enjoys coding and changing the world, he secretly dreams of becoming a rock star.