Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Last active April 11, 2022 13:17
Show Gist options
  • Save searchwpgists/2423c349df6b4888d0f32855c91a3bcf to your computer and use it in GitHub Desktop.
Save searchwpgists/2423c349df6b4888d0f32855c91a3bcf to your computer and use it in GitHub Desktop.
Increase SearchWP's indexer batch size
<?php
// Increase SearchWP's indexer batch size (default is 25).
add_filter( 'searchwp\indexer\batch_size', function( $size ) {
return 50;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment