The following command schedules cron job at 2:07am, 6:07am and 10:07pm to cleanup.
# Run cron at 2:07am, 6:07am and 10:07pm
7 2,6,22 * * * php /home/domain/zz-custom-clean.php 2>&1 > /dev/null
Why run a program at night? Because in most cases your site will be less loaded and there will likely be fewer visitors.
To add the cron job execute the following command and an editor will appear.
$ cron -e
Referral Note: When you purchase through a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer