searchwp\indexer\batch_size
Desde: 4.0.0
Sumário
Controle quantas entradas são indexadas durante cada lote do indexador.
Parâmetros
| Tipo | Parâmetro | Padrão | Desde |
|---|---|---|---|
| Inteiro | $size |
50 (10 se a redução da agressividade do indexador estiver ativada) |
4.0.0 |
Exemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Aumentar o tamanho do lote do indexador
This file contains hidden or 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 | |
| // Increase SearchWP's indexer batch size (default is 25). | |
| add_filter( 'searchwp\indexer\batch_size', function( $size ) { | |
| return 50; | |
| } ); |

