Pages

Friday, July 5, 2013

Script for to remove the cache in 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 :)

No comments:

Post a Comment