Can someone please explain me, what I have to do? I want Magento to clean logs, create a sitemap every day.
Is this the right order:
How do I do step 1 and 2? What will be step 3? Do I have to wait?
Use crontab -e
to edit your cron jobs. To run a daily cron, add a line like this:
0 3 * * * /bin/sh /path/to/magento/cron.sh
This will run at 3 AM every night.
For log cleaning, you can check /path/to/magento/shell/log.php
.
In the Magento admin, go to: System > Configuration > Advanced > System > Cron (Scheduled Tasks) and configure cron jobs you wish to run.
You should know that Magento runs cron jobs even if you don't have a daily cron job configured. Whenever Magento receives a request, it checks if there are any cron jobs to be run. Therefore, having the daily cron job would only make sense if you had no requests for an entire day.
Really there is no next step to be done. I recommend you read How to Set Up a Cron Job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With