Microsoft Content Management Server - caching of custom control

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2004 > caching of custom control





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author caching of custom control
Mei Ying [MVP]

2004-10-25, 2:46 am

Hi

That's the way its designed to work when the cache
duration for the control is less than that of the page.
See this article:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconCachingPortionsOfASPNETPage.asp

Here's a snippet from the article:
---
If the page output cache duration is longer than the user
control output cache duration, the page output cache
duration is effective for the entire page, including the
user control. For example, if page output caching is set
to 100 seconds and the user control output caching is set
to 50 seconds, the entire page is stored in the output
cache for 100 seconds, regardless of the shorter setting
for the user control.
---

regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---

>-----Original Message-----
>hi all:
>i have a template that i would like to cache for 60

seconds, so i
>added this header to the template fle:
><%@ OutputCache Duration="60" VaryByParam="None"
>VaryByCustom="CMSPosting" %>
>
>and inside this template i have a user control that i

would like to
>cache only for 1 seconds, so i added this line to the

user control:
><%@ OutputCache Duration="1" VaryByParam="None"
>VaryByCustom="CMSPosting;CMSControl" %>
>
>the problem is that the user control is cached for 60

seconds and not
>1 second !! what wrong am i doing ?
>.
>

Imad Mari'e

2004-10-26, 2:46 am

any briliant ideas how i can make a small portion of the template not cached ?!!!
Stefan [MSFT]

2004-10-26, 7:46 am

Hi Imad,

this is an ASP.NET related question.
Please post the question about how to avoid caching of user controls to an
ASP.NET related newsgroup.

Thanks,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Imad Mari'e" <imad.marie@gmail.com> wrote in message
news:c5e060c4.0410260037.68ea827c@posting.google.com...
> any briliant ideas how i can make a small portion of the template not

cached ?!!!


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com