Commit 48a7c90d authored by Simon Wheatley's avatar Simon Wheatley Committed by GitHub
Browse files

Update README.md

parent fe427ade
......@@ -2,4 +2,18 @@
Execute WordPress cron events in parallel, using a custom post type for event storage.
Using REST API endpoints (requires WordPress 4.4+), an event queue is produced and events are triggered.
\ No newline at end of file
Using REST API endpoints (requires WordPress 4.4+), an event queue is produced and events are triggered.
## Event Concurrency
In some circumstances, multiple events with the same action can safely run in parallel. This is usually not the case, largely due to Core's alloptions, but sometimes an event is written in a way that we can support concurrent executions.
To allow concurrency for your event, and to specify the level of concurrency, please hook the `a8c_cron_control_concurrent_event_whitelist` filter as in the following example:
``` php
add_filter( 'a8c_cron_control_concurrent_event_whitelist', function( $wh ) {
$wh['my_custom_event'] = 2;
return $wh;
} );
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment