Created
January 25, 2021 13:29
-
-
Save jchristopher/281d47695f9fe9a4a3e868655620c220 to your computer and use it in GitHub Desktop.
Customize SearchWP's Indexer throttle
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 | |
// Customize SearchWP's Indexer throttle. | |
add_filter( 'searchwp\background_process\load_throttle', | |
function( $throttle, $args ) { | |
return 4 * $args['load']; | |
}, | |
10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment