Is Donut Caching working properly with ASP.NET MVC?
Asked Answered
P

2

10

And by donut caching, I'm refering to Scott Guthrie's blog post which is awesome.

Does anyone know if that works properly?

Peay answered 17/10, 2008 at 11:43 Comment(5)
That's a great link! Donut caching, when using the WebFormViewEngine also works with the declarative control too.Mongeau
Yeah. I also sent an email to Mr. Guthrie to see if he had anything planned about that. He's still the Overlord of MVC after all. :)Peay
Yes, you can donut cache by following the steps in this blog post.Mongeau
Phil, AFAIK this is no longer correctForsterite
Can you please Phil let us know if your article work on asp.net mvc 3?Benighted
J
10

Note that this technique no longer works as of MVC 2.0. Which sucks.

Jezreel answered 14/4, 2010 at 14:55 Comment(2)
Care to expand on that thought?Peay
Sure. It just doesn't work any more, the substitution only gets called once and then gets cached along with the rest of the page so whatever the first value of your substitution function is will be hard coded into your cached page. Apparently it's the result of a change in the page rendering mechanism in MVC2 (and 3 as far as I'm aware).Jezreel
P
1

Cross-post from another question:

Donut Caching (yes, the real thing) is available as part of my 'speed-lib' for MVC: Moth. Works in both ASP.NET MVC 2 and MVC 3.

Docs are at the wiki, and examples are in the Mvc3.Demo folder

Poisonous answered 9/8, 2011 at 10:14 Comment(3)
Be careful when posting copy and paste boilerplate/verbatim answers to multiple questions, these tend to be flagged as "spammy" by the community.Unblown
I've been using it and I really like Moth. @Jan: I think there's an issue where the filter modifies the headers after the response has been sent (on a redirect)... not sure, however; still investigating.Assassinate
Hi, can you create an issue on the Issues page?Poisonous

© 2022 - 2024 — McMap. All rights reserved.