searchwp\index\aggressive_delta
4.0.0以降
デフォルトでは、SearchWPはデルタ更新を処理する際にバックグラウンドプロセスを利用します。これにより、ページの読み込み時間を最小限に抑えることができます。代わりに、SearchWPがコンテンツ編集とインラインでデルタ更新を適用することを希望する場合は、このフックを使用できます。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
false |
4.0.0 |
例
All hooks should be added to your custom SearchWP Customizations Plugin.
デルタインデックスの更新をインラインで適用します(バックグラウンドプロセスとは対照的に)
SearchWPに、バックグラウンドプロセスを利用する代わりに、該当する場合にページ読み込み中にデルタ更新を適用するように指示します。
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 | |
| // Apply delta Index updates inline (as opposed to the background process) | |
| add_filter( 'searchwp\index\aggressive_delta', '__return_true' ); |

