Every website and Content Management Systems use cache to deliver the best user experience. This also help improve website performance. Caches are nothing but a small piece of stored that stored on a web browser whenever you visit a website.

But the thing with cache is they need to change after a certain period of time. As a website owner who has created his website on Magento, you would change your theme or code at some point in time. But at times you might not notice change in content or display style. The is problematic because if the new changes aren’t visible, then your visitors will be dealing with outdated information.

In this article, we’ll explain to you about Magento Cache Management and how to clear your cache manually.

How Magento Cache Affects Websites?

As mentioned above, cache is a small piece of code that’s placed on your web browser every time you visit a web page. But this is just one type of cache and it is called “Client-side Cache”. There’s also a Server-side cache that’s stored on the server.

When a new session starts, i.e. whenever you will visit the same website again, these caches are retrieved. Based on the stored data, only the required website details are retrieved instead of the complete website. This way of communication makes the network bandwidth more efficient and less expensive.

In Magento, there’s a page cache library you can use right out of the box. It utilizes a PHP reverse proxy that can cache an entire page. This proxy acts like an intermediator between your website visitor and your Magento application. The result is a more efficient load balancing on your server.

If you, as a Magento admin, make some changes to the backend, but it doesn’t reflect in the frontend, then chances are the caches are in place that are retrieving old content.

To update the new look, you need to clear the caches.

Steps to clear Magento Cache Manually

There are 2 ways from which you can manually clear cache in Magento. Depending on which version of Magento you’re using, the steps mentioned below might be different, but they’re nearly the same.

Assuming that you’re using Magento 2 or higher, here’s how you can clear the caches:

Clearing Cache from Admin Panel

To clear cache, there are two major tools, both of which can be found in the admin panel itself. Those are:
  1. Flush Magento cache
  2. Flush Magento storage
The first tool clears the cache from var/cache directory that were installed by Magento. The latter clears files from the same directory, but doesn’t bother whether they were created by Magento or manually by the admins.

Here are the steps:
  • Log in to your Magento admin panel.
  • Navigate into Systems>Cache Management
  • Tap on “Flush Magento Cache”
  • Then tap on “Flush Cache Storage”
Clearing Cache with SSH

If you like working the SSH, then you can use this method. Here are the steps involved:

  • Log in to your account via SSH
  • Then use the following commands:
php bin/magento cache:clean
php bin/magento cache:flush
The second command will remove all cache. So keep that in mind.

If you’re running Magento 1.x, then you need to execute this command:

rm -rf var/cache/*
This will remove all cache from var/cache directory which is where all the cache files are stored.

Once you’ve removed all the caches, you’re required to refresh the website from the client side, i.e. in the browser. Post this, you’ll be able to see the changes made.
First release
Last update
0.00 star(s) 0 ratings