Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Throttle the SearchWP indexer by injecting a wait time in between indexer passes
// inject a 1 second throttle to the SearchWP indexer process to reduce server load
function my_searchwp_indexer_throttle( $wait_time ) {
return 1;
add_filter( 'searchwp_indexer_throttle', 'my_searchwp_indexer_throttle' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment