searchwp\index\aggressive_delta
Since: 4.0.0
Table of Contents
By default SearchWP utilizes its background process when handling delta updates. This helps keep page load times to a minimum. If instead you would prefer that SearchWP applies delta updates inline with content edits you may use this hook.
Parameters
Type | Parameter | Default | Since |
---|---|---|---|
Boolean | $enabled |
false |
4.0.0 |
Examples
All hooks should be added to your custom SearchWP Customizations Plugin.
Apply delta Index updates inline (as opposed to the background process)
Tell SearchWP to apply delta updates during page load when applicable, instead of utilizing the background process.
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 | |
// Apply delta Index updates inline (as opposed to the background process) | |
add_filter( 'searchwp\index\aggressive_delta', '__return_true' ); |