Running wp-cron with cronjob

By default wordpress run cronjob everytime user visit your web site. This is bad idea for busy site.

To run wp-cron with cronjob, first edit wp-config.php and add following

Now set cronjob.

if you have wp-cli installed, use following cronjob

If you don’t have wp-cli installed, use

Replace /var/www/html to actual folder where your wordpress installation is located.

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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