Replies: 0
I would like to disable running wp-cron every time someone accesses the site, and run it only once every hour.
So just after line
define('DB_COLLATE', '');_
of the wp-config.php file
I added the code below,
define('DISABLE_WP_CRON', true);
Then I added a cron job to cpnael (To run hourly in minute 1) with the following code:
[minute] [hour] [day] [month] [day of the week]
1 * * * * /usr/bin/php -f /home/MY-USER/public_html/site/wp-cron.php >/dev/null
In my tests, I scheduled some publications, to be executed before the scheduled time for the cron to run.
And they were actually deactivated as desired.
Then, at the defined time, the cron was executed and the publications were made. GREAT.
However when checking the hostgator panel.
I noticed that the wp-cron.php file is running more than once an hour.
Approximately 3.7x per hour.
I believe that one of these times is the one I programmed, but what about the other 2.7x?
What else can the file be running?