searchwp\indexer\batch_size
Desde: 4.0.0
Tabla de contenidos
Controla cuántas entradas se indexan durante cada lote del indexador.
Parámetros
| Tipo | Parámetro | Predeterminado | Desde |
|---|---|---|---|
| Entero | $size |
50 (10 si está habilitada la agresividad reducida del indexador) |
4.0.0 |
Ejemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Aumentar el tamaño del lote del 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; | |
| } ); |

