I'm using preview 5 and trying to get some partial page caching. I don't want to use a user control. I am instead using RenderAction() to render one of my controllers. Then I'm putting [OutputCache(Duration=1200)] on my controller method, but its still
firing every time and not caching when called in this way.
Is this not supported yet? Is there another way i should be doing this?
We don't yet support partial view caching. We've been looking into how we can support this, but unfortunately it's
very complicated to get this working properly, so we've prioritized other bugs and features ahead of it in the meantime.
fregas
Member
406 Points
96 Posts
Partial page caching
Oct 10, 2008 03:42 PM|LINK
I'm using preview 5 and trying to get some partial page caching. I don't want to use a user control. I am instead using RenderAction() to render one of my controllers. Then I'm putting [OutputCache(Duration=1200)] on my controller method, but its still firing every time and not caching when called in this way.
Is this not supported yet? Is there another way i should be doing this?
Thanks,
Craig
levib
Star
7702 Points
1099 Posts
Microsoft
Re: Partial page caching
Oct 10, 2008 04:59 PM|LINK
We don't yet support partial view caching. We've been looking into how we can support this, but unfortunately it's very complicated to get this working properly, so we've prioritized other bugs and features ahead of it in the meantime.