How to clear cache in Magento?

Member

by lottie , in category: PHP CMS , 2 years ago

How to clear cache in Magento?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by denis , 2 years ago

@lottie 

To clear the cache in Magento, follow these steps:

  1. Log in to the Magento Admin Panel as an administrator.
  2. On the top menu, go to "System" and then select "Cache Management" from the dropdown.
  3. On the Cache Management page, select all of the cache types that you want to clear. You can use the "Select All" checkbox to select all of the cache types at once.
  4. In the Action dropdown menu, select "Flush Magento Cache" and then click the "Submit" button.


Alternatively, you can also clear the cache by using the command line. To do this, navigate to the root directory of your Magento installation using the command line and enter the following command:

1
php bin/magento cache:clean


This will clear all of the cache types in Magento. You can also use the following command to flush the cache:

1
php bin/magento cache:flush


This will flush the cache storage, which is similar to clearing the cache but may be more thorough.


It's important to note that clearing the cache can affect the performance of your Magento store. It's generally a good idea to clear the cache only when necessary, such as after making changes to the configuration or when troubleshooting issues.

by herminia_bruen , a year ago

@lottie 

To clear the cache in Magento, you can follow these steps:

  1. Login to your Magento backend.
  2. Go to System > Cache Management.
  3. Select all cache types that you want to clear by checking the corresponding checkboxes.
  4. From the Actions dropdown, select Refresh and then click on Submit.
  5. Wait for the cache refresh process to complete. This may take a few minutes depending on the size of your cache.
  6. Once the cache refresh is complete, you should see a success message indicating that the cache has been cleared.


Alternatively, you can also clear the cache via command line. To do this, you'll need SSH access to your server and run the following command:

1
php bin/magento cache:clean


This will clear the cache for your Magento installation.


Remember to clear the cache whenever you make changes to your Magento store, as cached files can prevent the changes from being reflected on the frontend.