Jul
15
2009
15
2009
Magento: Clear the cache with PHP script.
It always take time to get rid of the Magento cache. However cache is needed to execute the request faster. One way of clearing the cache is delete all the directories inside the /var/cache directory. Doing that manually it will take some time if you are connected to the FTP server.
The easiest way of clearing the cache in Magento is here.
<?php
ini_set('max_execution_time', 3600);
ini_set("memory_limit","256M");
$script = "rm -rf var/cache/*";
$results = system($script,$retval);
echo " Cache cleared, RETURN VALUE: $retval\n";
?>
Name the file clearcache.php. Put it in the root directory of the Magento setup & execute in the browser.
Related Posts
-
http://mtness.net mtness
-
http://www.perfettoprint.com Jordan
-
manish patel
-
Lisa
-
Craigcriv
-
Ky
-
Janz
-
http://modraideja.com Modra Ideja

An article by