|
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 ?!!!
| |
|
|
|
|
|