Contact
Site: US UK AU |

How to flush your Magento cache

How to flush your Magento cache

Overview
This article shows how to flush the Magento 1.x and Magento 2 cache with either the Magento admin interface or SSH.

Table of contents

For memcached and redis users

If your store uses memcached, use the procedure in How to flush memcached instead of any provided below.

If your store uses redis, use the procedure in How to flush redis instead of any provided below.

Magento 1.x

This section offers two methods. The Admin Panel is most appropriate for users unfamiliar with SSH and CLI commands.

Using the Admin Panel

  1. Log in to your Magento Admin Panel.

  2. From the System tab, click Cache Management (Figure 1).

    Figure 1. Magento Admin Panel; System > Cache Management.

  3. Click Flush Magento Cache (Figure 2). If successful, you will see the message, “The Magento cache storage has been flushed.”

    Figure 2. Flush Magento Cache button.

Using SSH

You must have SSH access to your server in order to use this method. If you do not have SSH access, see How to obtain SSH access from Nexcess for details.

After you log in to your server, run the following command from your site’s root folder:

php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();'


Magento 2

This section offers two methods. The Dashboard is most appropriate for users unfamiliar with SSH and CLI commands.

Using the Dashboard

  1. Log in to your Magento Dashboard.

  2. From the System tab, click Cache Management (Figure 3).

    Figure 3. Magento 2 Dashboard; System > Cache Management.

  3. Click Flush Magento Cache (Figure 4). If successful, you will see the message, “The Magento cache storage has been flushed.”
    Figure 4. Cache Management; Flush Magento Cache button.

Using SSH

You must have SSH access to your server in order to use this method. If you do not have SSH access, see How to obtain SSH access from Nexcess for details.

After you log in to your server, run the following command from your site’s root folder:

php bin/magento cache:flush

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (4 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to remove index.php from your Magento site URL
Added on Wed, May 31, 2017
How to back up your Magento 1 store
Added on Thu, Oct 18, 2018
How to patch your Magento store
Added on Mon, Jan 11, 2016
How to configure Magento to use your SSL certificate
Added on Mon, Feb 29, 2016
How to issue a reindex in Magento
Added on Fri, Nov 15, 2013
How to add admin users in Magento 1.x
Added on Wed, Dec 7, 2016
How to set the return-path email in Magento
Added on Thu, Oct 30, 2014
How to enable the Magento profiler
Added on Thu, Feb 25, 2016
What is the “Client denied by server configuration app/etc/local.xml” error?
Added on Thu, Sep 10, 2015
How to enable system error logging in Magento 1.x
Added on Wed, Sep 19, 2018