Friday, 6 January 2017

Ensure WP Corn Runs On Time – Typist Tech


WP Corn is the schedule system implementation of WordPress. Unlike linux cron, it doesn’t guarantee jobs are performed on time. Ever wondered why your scheduled posts not posted at specific time but suddenly published when you log in to WordPress dashboard to check out what’s wrong? You are the victim of WP cron. Scheduled jobs are saved into database and wait for WP Cron to perform them. However, unlike traditional corn systems, it’s doesn’t watch the clock periodically.
Click To Tweet
On a low-traffic WordPress site, WP Cron often perform the scheduled jobs beyond their specific time because nobody visits WordPress. Thus, nobody triggers WP Corn to check for scheduled jobs. Finally, someone visit WordPress and fires too many jobs, causing PHP timeouts.
On the other hand, high-traffic sites trigger WP Cron too often. As jobs are saved in database, querying for cron jobs become a waste of resource. Worse still, multiple WP Corn instances might performing the same job at the same time. This could be problem if the jobs are not idempotent (safely execute multiple times). Lucky for you, WordPress has a better locking system and much less issues about this is reported
Source: https://managewp.org/articles/14153/ensure-wp-corn-runs-on-time-typist-tech




source https://williechiu40.wordpress.com/2017/01/07/ensure-wp-corn-runs-on-time-typist-tech/

No comments:

Post a Comment