searchwp\indexer\batch_size
4.0.0以降
インデクサーの各バッチ中にインデックスされるエントリの数を制御します。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| 整数 | $size |
50 (10 インデクサーのアグレッシブ設定が有効な場合は 10) |
4.0.0 |
例
All hooks should be added to your custom SearchWP Customizations Plugin.
インデクサーのバッチサイズを増やす
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; | |
| } ); |

