Throttle the SearchWP indexer by injecting a wait time in between indexer passes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 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