Skip to content

Instantly share code, notes, and snippets.

@searchwpgists
Created March 25, 2022 17:50
Show Gist options
  • Save searchwpgists/e67d8b6b1ab8f9c172caf564d22fd677 to your computer and use it in GitHub Desktop.
Save searchwpgists/e67d8b6b1ab8f9c172caf564d22fd677 to your computer and use it in GitHub Desktop.
Reduce SearchWP's batch size for token generation
<?php
// Reduce SearchWP's batch size for token generation.
add_filter( 'searchwp\index\tokens_max', function( $limit ) {
return 200;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment