SearchWP

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.

<?php
// Apply delta Index updates inline (as opposed to the background process)
add_filter( 'searchwp\index\aggressive_delta', '__return_true' );

How to use this code