searchwp\background_process\load_monitoring
since: 4.1.0
SearchWPは可能な限りシステムCPU負荷を監視し、サイト訪問者へのサービスの中断を回避するためにインデックス作成プロセスをスケールバックします。このフックを使用して、SearchWPの負荷監視を無効にすることができます。
パラメータ
| タイプ | パラメータ | デフォルト | 提供開始 |
|---|---|---|---|
| ブール値 | $enabled |
function_exists( 'sys_getloadavg' ) の戻り値 |
4.1.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 | |
| // Disable SearchWP system load monitoring. | |
| add_filter( 'searchwp\background_process\load_monitoring', '__return_false' ); |

