searchwp\background_process\load_monitoring
Since: 4.1.0
Table of Contents
SearchWP will monitor system CPU load when possible and scale back the indexing process so as to avoid service interruption for site visitors. Using this hook you can disable SearchWP’s load monitoring.
Parameters
Type | Parameter | Default | Since |
---|---|---|---|
Boolean | $enabled |
Return value of function_exists( 'sys_getloadavg' ) |
4.1.0 |
Examples
All hooks should be added to your custom SearchWP Customizations Plugin.
Disable SearchWP Indexer load monitoring
This file contains 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' ); |