Script for to remove the cache - Magento

Here i paste code to remove the cache from the magento.. magento can provide a options to us to remove cache form the admin configuration, but sometimes it not more helpful to us... so expert suggest to remove cache folder..

make one cache-clear.php file into your root folder and paste following code:

 <?php  
 require_once ("app/Mage.php");  
 umask(0);  
 Mage::run();  
 Mage::app()->getCache()->clean();  
 exit("done");  
 ?>  
can call that file with :http://yourdomainname/cache-clear.php

hope this helps :)

Cheers,
Gaurav

Comments

  1. Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

    offshore magento development

    ReplyDelete

Post a Comment

Popular posts from this blog

Magento Reindexing problem - take too long time

Magento Navigation menu of CMS pages

Dont want to merge old carts items with current quote