(gs):Clear Magento cache
- This page was last modified on February 7, 2011, at 15:15.
From (mt) Community Wiki
Contents |
Overview
The following walkthrough is outside the scope of (mt) Media Temple support. We offer this as a courtesy to assist you with your Magento website. You may install third-party software such as Joomla, WordPress, Magento, and so on, if you would like to do so. However, it must be understood that since these are all third-party software packages, we are unable to provide support for them. You can read our Statement of Support for further details. We encourage you to visit either our User Forums or the support forums for your third-party software for assistance.
Symptoms
When you find your Magento site not coming up at all or it's loading very slowly, it may be because you need to clear out the cache for Magento and/or you didn't set the cache to auto-clear in the Magento admin panel.
In cases like these, you may need to manually clear out the cache. The easiest way to do this would be through SSH. If you do it through the AccountCenter's File Manager or your FTP program, you may need to go into each folder, delete the files, then backtrack to delete the folders themselves; all of which can be very time-consuming. SSH allows you to do the whole thing in one fell swoop.
Using SSH
This (mt) Wiki article will help you get connected via SSH to your (gs) Grid-Service:
Once you're connected via SSH, browse to the following folders, using the "cd" command, as shown below:
cd /domains/example.com/html/var/cache
The /cache folder will contain subfolders that read as /mage--# or /mage--X. When you delete these files and folders, they will be recreated when the site is accessed again.
Once you're in the /cache folder, type in the following command:
rm * -rf
This command will delete any and all files and folders recursively. In essence, this will completely empty out the /cache folder. This, in turn, should allow your site to come back up. If after running this command, you still see the /mage--# or /mage--X folders, then most likely, someone has visited your site and the folders and files were recreated. This is normal.
Notes/Supplemental
For any further assistance in this matter, we suggest you visit either our User Forums or the Magento support forum.