Available since: 2.5
searchwp_max_delta_attempts
View Parameters »Once the initial index has been built, SearchWP applies delta updates to the index. These delta updates contain only content that was modified in some way and prevents the need to rebuild a full index constantly. By default SearchWP will trigger automatic delta updates, but in rare cases (e.g. SearchWP’s database tables were removed by a developer) the delta process can run multiple times. There is a safeguard in place that prevents this process from running forever.
If you would like to modify the default number of delta attempts SearchWP makes (5) add something like the following to your theme’s functions.php:
<?php | |
function my_searchwp_max_delta_attempts( $number_of_attempts ) { | |
return 4; // try up to 4 times | |
} | |
add_filter( 'searchwp_max_delta_attempts', 'my_searchwp_max_delta_attempts' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$number_of_attempts |
Integer |
How many times SearchWP will attempt delta updates when they fail (default: 5) |