re: How to Automatically Share Your Wordpress Articles with Buffer and Cron VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for sharing - it's worth noting that WP Cron only runs when a site is visited. But that's probably solved as you log in and write / post mor...
 

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

 

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).

 

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.

code of conduct - report abuse