If you are hosting your website on WP Engine, you’ll have to implement the following two fixes to prevent issues with indexing and showing results:

Disable WPE_Governor

If you experience problems with FacetWP’s indexer stalling or not indexing all your posts, try disabling WP Engine’s “WPE_Governor” by adding the following line to wp-config.php (not to functions.php):

How to use custom PHP code?

PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info

define( 'WPE_GOVERNOR', false );

WP Engine limits long queries (longer than 1024 characters) for performance reasons. The above line in wp-config.php prevents that.

Add FacetWP’s API URL to WP Engine’s cache exclusions

If you have problems with new or imported posts not showing up in the results, or a “FacetWP was unable to auto-detect the post listing” error, the cause can be that WP Engine is caching FacetWP’s API URL:

/wp-json/facetwp

Reach out to WP Engine support and ask them to add the above URL to your account’s custom cache exclusion list.

WP Engine and Pods Alternative Cache

A performance tip: if you are hosting your website on WP Engine, and your site is using the Pods plugin, experiment with the Pods Alternative Cache add-on plugin. It was developed for and tested specifically on the WP Engine platform to improve the performance of cached objects generated from Pods (but it works on other hosting providers too). See the page about our (decommissioned) Pods add-on page for more info.

See also