Caching the Search Page Results

By default WP Rocket does not cache results of WordPress’ search functionality.

In order to enable caching for search results, use the rocket_cache_search filter in the functions.php of your theme, or—preferably—in a custom plugin:

add_filter( 'rocket_cache_search', '__return_true' );