Caching module / Caching in Orchard CMS

603 views Asked by At

I am using Orchard 1.7.3 and there is certain code in my project that I don't want to cache. Is there any way to use the ICacheManager in orchard to exclude certain part of my code from caching?

Or is there some setting in the Orchard's Caching module that will exclude certain content from caching?

Thanks.

1

There are 1 answers

1
Bertrand Le Roy On BEST ANSWER

Yes, you can decorate controller actions with the [OutputCache(Duration = 0)] attribute.

There is also a settings page for the output cache where you can specify a list of excluded URLs.