| Stefan [MSFT] 2005-07-08, 2:48 am |
| Hi Ramzi,
this is actually an ASP.NET question and not a MCMS question.
Anyway: ASP.NET does not allow to do this. If you cache a page then
everything is cached. ASP.NET cannot exclude something.
This also affects caching btw: you cannot set a smaller timeframe for the
user control cache as for the page cache as the page always wins.
This will change with ASP.NET 2.0 where you are able to exclude parts of the
page from being cached.
Cheers,
Stefan
"Ramzi" <Ramzi@discussions.microsoft.com> schrieb im Newsbeitrag
news:60658A1E-A5D3-42BA-AAC0-8D826E25FDB7@microsoft.com...
> Hi, we have pages that are very personalized with User Controls that are
> consistently dynamic.
>
> So what we would like is for the CMS content (coming from placeholders) to
> be cached but NOT for the user controls to be cached.
>
> We've tried putting this
> <%@ OutputCache Duration="30" Location="Server" VaryByParam="None"
> VaryByCustom="CMSPosting;CMSRole;CMSUser"%>
> but this seems to caching our web user controls which goes againt our
> requirements.
>
> Any ideas out there? Stefan? anyone?
> --
> MCSD.NET
|