Questions? Feedback? powered by Olark live chat software
Author Avatar

Clear Magento Cache Without Admin Access

Written by: on 28 July 2014 10:26 AM 28 July 2014 10:26 AM

You may need to clear Magento site cache sometimes. Find guidelines to clear Magento cache without admin access.

If you have a Magento site and have moved or updated the base URL and it's not serving correctly, you may need to clear the cache. However, you may have lost access to the admin area of Magento.

To fix this create a file called 'cache.php' in the root of your Magento website.

Place the following code in this file:

require_once 'app/Mage.php'; 
$app = Mage::app(); 
if($app != null) { 
$cache = $app->getCache(); 
if($cache != null) { 


Then access it through your browser e.g.

(3 vote(s))
Not helpful