10

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

Does anyone know if that works properly?

Maxime Rouiller
  • 13,614
  • 9
  • 57
  • 107

2 Answers2

10

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

Rupert Bates
  • 3,041
  • 27
  • 20
  • 1
    Care to expand on that thought? – Maxime Rouiller Apr 14 '10 at 20:13
  • 1
    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). – Rupert Bates Jan 28 '11 at 13:26
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

Community
  • 1
  • 1
Jan Jongboom
  • 26,598
  • 9
  • 83
  • 120
  • Be careful when posting copy and paste boilerplate/verbatim answers to multiple questions, these tend to be flagged as "spammy" by the community. – Kev Aug 09 '11 at 10:59
  • 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. – Esteban Araya Nov 26 '11 at 21:19
  • Hi, can you create an issue on the [Issues page](https://github.com/janjongboom/Moth/issues)? – Jan Jongboom Nov 27 '11 at 10:25