Skip to content

Risk of Caching top search results

Recently we have found out that some of our search results are not being cached because Setting called Stores->Configuration->Catalog->Catalog-> Catalog Search -> Number of top search results to cache was set to 100 (default value)

This seems strange as not caching search results – makes website super slow at some times.

Is there any risks to set it to 0 to cache all search results? It really confuses me. The only downside of caching them that I can think of is memory usage, but it is hard to tell how much does this affect.

We are using Magento 2.4.6-p8 Open source + varnish + opensearch.

We will try to cache all searchresults for now, but maybe someone has already some experience and can share something about this?