Clearing the Magento Cache

Just another quick Magento tip as I continue my journey back into the swamps of e-commerce.

Magento’s admin console has a section for managing your cache
(System->Cache Management) which works well, unless you happen to get a bad configuration cached that crashes the system or renders the admin inaccessible.

When that’s happened to me I’ve been able to completely delete the cache folder, and Magento is smart enough to recreate it on the fly

rm -rf var/cache/mage-*

This will zap all your cached values and allow you to fix whatever it is you broke.

Like this article? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Read more about Magento
Originally published May 5, 2009