caching of custom control
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > caching of custom control




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    caching of custom control  
Mei Ying [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-04 07: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 ?
>.
>





[ Post a follow-up to this message ]



    Re: caching of custom control  
Imad Mari'e


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-04 07:46 AM

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





[ Post a follow-up to this message ]



    Re: caching of custom control  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-26-04 12:46 PM

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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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 ?!!!







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:52 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register