Try our conversational search powered by Generative AI!

EPiServer content output cache and search results



We have [ContentOutputCache] attribute for News controller with setting of one day caching and we have call to search to fetch articles in same controller, if there is any issue with find service and it doesn't any result then results should be displayed from caching right?

Currently article result section is empty if there is no result from search.

May 27, 2021 5:01

Caching is just displaying what it got when cached. Was the service/result empty does it display empty as long as it is cached.

May 27, 2021 6:27

Hi Deepa,

If i understand your questions correctly then the [ContentOutputCache] comes in the picture when you load the page but I think for your search purpose you should use the Object caching and I am not sure what logic you have written for fetching the articles.

May 27, 2021 7:23
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.