Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Move to an External Cron #42

Closed
kingkool68 opened this issue Apr 9, 2018 · 0 comments
Closed

Move to an External Cron #42

kingkool68 opened this issue Apr 9, 2018 · 0 comments

Comments

@kingkool68
Copy link
Contributor

Currently each machine runs a WP CLI script every minute to manage cron events (See b279d5c)

The problem with doing this in production is we have multiple servers running at a given time which means the cron events are triggered multiple times per minute. The best way to resolve this would be to use an external cron service that pings one URL so the cron job is only triggered once per minute regardless with how many machines are running in production.

Possible solutions:

Either solution would also require us to set-up a PHP script that the external cron would hit so whenever we add a new site we don't need to manually update the external cron script. See https://tribulant.com/blog/wordpress/replace-wordpress-cron-with-real-cron-for-site-speed/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant