Clean up Magento Log & Cache Maintenance Data

Prem Tiwari - - Magento Tutorial

Hi folks, today I got a request from one of my last office colleague. The question is “Clean up Magento Log & Cache Maintenance Data” in one of his client websites.

Do you why we need to clean up Magento log and Magento cache maintenance data from our Magento online store. After clean up Magento log & cache data, it will reduce the page loading time.


I have shared a PHP script to clean up log and cache data at one click. Create a magento-cleanup.php file and copy paste below code and upload it to the root directory of your website. After uploaded go to your browser and run the magento-cleanup.php page by using hhtp:// This script will clean up all log & cache data from the site and your website will load faster.

About: Prem Tiwari

Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , ,