SearchWP

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

<?php
// Disable SearchWP system load monitoring.
add_filter( 'searchwp\background_process\load_monitoring', '__return_false' );

How to use this code