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.

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.