How can i exclude some part of page from OutputChache?

Topics: General, Writing modules, Writing themes
Apr 18, 2014 at 3:27 PM
I am using Output Cache module. Also i create module for showing Captcha code. I used GUID in this module to handle any challenges. The problem is caching of the whole page including GUID that causes problem in my module.
Is there a way to exclude this part of page from cache or i must exclude page totally?
For example can i exclude only one razor template from cache?
Developer
Apr 18, 2014 at 5:38 PM
This is called doughnut caching and is something that no caching mechanism in Orchard supports. So the workaround for now is to exclude the whole page from caching.
Apr 18, 2014 at 6:30 PM
Thank you for your reply.
Apr 19, 2014 at 8:22 AM
Edited Apr 19, 2014 at 8:22 AM
You can also use an Ajax delayed load, this a tech used by eCommerce for payment.
Apr 22, 2014 at 9:35 AM
Apr 22, 2014 at 10:28 AM
Piedone wrote:
This is called doughnut caching and is something that no caching mechanism in Orchard supports. So the workaround for now is to exclude the whole page from caching.
It is possible though (as we have donut hole caching @ tacx.com)

We ripped everything out of https://github.com/moonpyk/mvcdonutcaching and made it our own. Maybe you can do the same.