B-219 Sec-55 Noida, India
+918010221733

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,

(Visited 26 times, 1 visits today)

Leave a reply