Pages

Thursday, July 4, 2013

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,

No comments:

Post a Comment