DEV Community

Discussion on: How to Automatically Share Your Wordpress Articles with Buffer and Cron

Collapse
 
nicolrx profile image
nico_lrx

I didn't know about that, can you explain more? What do you mean by "is visited", only by the admin or any visitor?

Collapse
 
ann profile image
Ann

WP system's own cron is triggered by the visitor, if there are no sufficient visitors, wp's cron may not be able to run as frequent as webmaster expects.
WordPress users can disable the WP Cron System by adding
define(‘DISABLE_WP_CRON’, true);
to your wp-config.php file, and use server cron or external cron service (like easycron.com).

Collapse
 
drawcard profile image
Drawcard • Edited

Sure, it's in the Plugin Handbook at developer.wordpress.org/plugins/cron/

WP-Cron works by: on every page load, a list of scheduled tasks is checked to see what needs to be run. Any tasks scheduled to be run will be run during that page load. WP-Cron does not run constantly as the system cron does; it is only triggered on page load. Scheduling errors could occur if you schedule a task for 2:00PM and no page loads occur until 5:00PM.

I presume from that, 'page load' means either someone visiting your site and requesting a page, or someone logging in and loading an admin page (eg to edit content) in the backend as well.

Thread Thread
 
nicolrx profile image
nico_lrx

Interesting, thanks!