How to clear the Magento 1.x cache
The Magento cache type contains configuration(system and module configuration files), layouts, HTML blocks, translations, attributes, etc. This caching system allows you to avoid repetitive operations upon condition that you didn’t change anything influencing these cache parts.
It’s recommended to use Magento cache in all cases except for staging projects or developer hosts so that you avoid irrelevant cache display while coding.
When making certain changes to Magento, such as modifying code files, patch installation, etc it is necessary to clear the cache in order for the changes to become visible.
There are two ways to clear the cache in Magento:
Through the Magento Admin Panel
- Log in to your Admin Panel account
- Go to the System >> Cache Management
- Click on the Flush Magento Cache button
Using SSH/FTP or the cPanel File Manager
Delete the contents of the var/cache/ folder using the following SSH command (MUST be executed from your Magento base directory):
rm -rf var/cache/*
Delete the folder var/cache/ through your FTP client or using the cPanel File Manager.