Two questions about shape method caching

Topics: Writing modules
Jul 5, 2013 at 5:13 PM
I'm thinking about adding Cris Bower's shape method caching code - http://chrisbower.com/2011/05/31/shape-method-caching/ - to my site. Any idea if:
  1. Is it going to work with 1.7 (which is coming real soon, right?).
  2. Is it a superset of the functionality of the Rework menu caching module - https://navigationcache.codeplex.com/ - i.e. should I remove menu cashing once I add shape method caching.
Thanks a lot.
Coordinator
Jul 6, 2013 at 3:02 AM
There is no reason why this method would cease to work. The only things to change may be to use the official caching APIs that didn't exist at the time. If you only need output caching of course, this is now built-in.
Jul 9, 2013 at 11:05 AM
Thanks Bertrand.

I can't use output caching as most of the users are logged in.

How about the menu caching module - are the menus in Orchard shape methods or do they need separate cashing?
Coordinator
Jul 10, 2013 at 6:47 AM
I don't know.
Jul 10, 2013 at 7:37 AM
MerryChristmas wrote:
Thanks Bertrand.

I can't use output caching as most of the users are logged in.

How about the menu caching module - are the menus in Orchard shape methods or do they need separate cashing?
We made our own custom donut caching capable system with plenty of bits extracted from https://mvcdonutcaching.codeplex.com/

Maybe you could do the same for your own needs?
Jul 10, 2013 at 6:07 PM
@AimOrchard Very interesting. Actually I can serve the same HTML to all users of a page (no user name is displayed on the majority of pages). The only problem are cookies, every request should get user specific cookies. Is that something that MVC Donut Caching handles?