Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 25, 2021 13:29
Show Gist options
  • Save jchristopher/281d47695f9fe9a4a3e868655620c220 to your computer and use it in GitHub Desktop.
Save jchristopher/281d47695f9fe9a4a3e868655620c220 to your computer and use it in GitHub Desktop.
Customize SearchWP's Indexer throttle
<?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