Caleb Burks
Caleb Burks
This is closer to the spirit of Laravel's queue worker: https://github.com/Automattic/Cron-Control. Turns WP cron into the worker/watcher model, and runs jobs through CLI. Not exactly the same once AS is...
For some more context on the cron-control model of scaling AS: 1) The cron-control plugin moves WP cron events into their own table, and exposes a CLI & REST interface...
> Also a new command that doesn't exit out when no task left. Instead, it'll just do a sleep and wait for new tasks to come in. Have to be...
It may be out of scope for this, but I think it fits. Could the `action_scheduler_allow_async_request_runner` filter be pulled out and run before all this? At the moment the following...
On the flip side though, could be good to know about it before a launch.
CC @itsTallulah, thought you might have thoughts here :)
Also noting here that I've seen a few tickets where missing rewrite rules would not be added until I ran `wp cache flush`.
Ah, think I figured out some of what goes wrong here. The request to flush_rewrite_rules() is being interrupted by a second request (any frontend page view). Example: 1. Admin Request...
Found a bug with the wpcom_vip_refresh_wp_rewrite() logic. If a site uses only `wpcom_vip_load_category_base()` for example, every flush via the plugin will result in permalink_base being reset to this: https://github.com/Automattic/vip-go-mu-plugins/blob/7bf6b099f7a1a218a9716b0dad93a66e388982ff/vip-helpers/vip-permastructs.php#L121 It...
Still in favor of deprecating/removing this extra bit of wpcom functionality. But we'll need an ideal system to switch to. This seems fine: ``` add_action( 'init', function() { global $wp_rewrite;...