Skip to content

ajendrapanwar/magento-cleanup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

magento-cleanup

Magento db & files Maintenance Script

#Instructions:

Place the following script inside the root direcotory of your magento

In the Add Cron Job section (cpanel), select Once a day from the Common Settings dropdown list.

In the Command field, enter the following line of code:

curl -s -o /dev/null http://yourwebsite.com/magento-cleanup.php?clean=log

and for files cleaning:

curl -s -o /dev/null http://yourwebsite.com/magento-cleanup.php?clean=var

It's a good idea to set the Email Address to something other than your username, otherwise your mail/new directory will fill up very quickly every time a cron job runs (assuming it produces output). You can leave it blank or use an actual email address.

About

Magento db & files Maintenance Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%