If I remove the cache attribute on the parent surface controller, it works as expected (but of course then nothing gets cached). Is this a bug with donutcaching or am I implementing it wrong? I would have thought any kind of post simply ignores cache altogether.
Donut caching error when posting to an action
Just wondering if you have come accross the following issue when using a Donut caching with a http POST to a controller action:
I have a cache set on my route-hijacked surface controller for the page, e.g.
and I also have a cache 'hole' defined in my action like so
The above error occurs when I post to my controller action to handle the form, e.g.
If I remove the cache attribute on the parent surface controller, it works as expected (but of course then nothing gets cached). Is this a bug with donutcaching or am I implementing it wrong? I would have thought any kind of post simply ignores cache altogether.
Hi,
I fixed this by getting the latest version of donut cache - i believe it's a bug that's been fixed in the latest version.
Cheers
Ian
Hey Barry,
Were you able to solve this. I'm running in to the same issue
Dave
Hey Dave, sorry for the delay been away.
I updated the package to 1.3.1 beta and that solved it for me.
https://www.nuget.org/packages/MvcDonutCaching/1.3.1-beta1
I have updated through NuGet but nothing works :/
The .dll file was not updated tough.
is working on a reply...