how to disable cron job in wordpress

how to disable cron job in wordpress

Before every post visit wordpress cron is running and taking too much bandwidth.  So we given trick and code to disable cron job in wordpress, which will disable wordpress cronjob.  if you have a lot of visitors it can be a problem. I am convinced this is the reason why my admin has become glacially slow and my site often crashes when making edits.

how to disable cron job in wordpress

Disable the wp-cron.php

you need to add the code to your wp-config.php file.


define('DISABLE_WP_CRON', 'true');

If you have shared hosting then add the following cron job


php -q wp-cron.php

If you have your own server then you need to add the cronjob in crontab


* */1 * * *wget https://purabtech.in/wp-cron.php

how to disable cron job in wordpress
how to disable cron job in wordpress

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

One thought on “how to disable cron job in wordpress”

Leave a Reply to Jane Cancel reply

Your email address will not be published.