.NETGURU
Output Caching Max Duration
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngspeed' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Steven A Smith (VIP)
In the book, ASP.NET Unleashed, Walther claims that output caching with a
duration of more than 5 minutes is treated as 5 minutes. Can someone from
MS confirm or deny this?

Steve

Steven Smith, MCSE+Internet, Microsoft MVP: ASP.NET
Click here to reveal e-mail address
President, ASPAlliance.com
http://aspalliance.com The #1 ASP.NET Community
http://aspsmith.com ASP.NET Training for ASP Developers

Learning ASP.NET? Get My Book: ASP.NET By Example
http://www.amazon.com/exec/obidos/ASIN/0789725622/stevenatorasp/

Reply to this message...
 
    
Rob Howard (VIP)
That is incorrect. But I know why he made that assumption.

In both Beta 1 and Beta 2 the Cache did not support scavenging. Rather
it would keep a 'most recently used' timestamp on the item within the
Cache, the default being 5 minutes. This was configured with a
PriorityDecay parameter (for those of you that may recall seeing this on
the Cache API).=20

What this translated to is: When an output cached page was added to the
Cache - let's say the Duration=3D"3600" - an entry was made in the Cache
API setting an expiration for 1 hour. However, if that item *was not
used* within a 5 minute window it would be removed due to under use. If
it was used within that 5 minute window, the timestamp would be reset
such that again if the item wasn't used within a 5 minute window it
would be removed due to under use. If the item was used repeatedly and
the under use case was never encountered the item would be evicted no
matter what at the end of the duration value (or when another dependency
(file/key) was enforced).

The final release of ASP.NET supports Cache scavenging. There is no more
PriorityDecay parameter on the Cache and the notion of under use is no
longer utilized. Rather, an item added to the Cache will stay in the
Cache until:
A. One of it's dependencies is enforced, e.g. Duration=3D"3600" - after =
1
hour the item is removed from the Cache
B. Cache scavenging kicks in due to memory pressure and the least
recently used items are removed.

So that is a 'deny' :)

Hope that makes sense!
Rob

-----Original Message-----
From: Steven A Smith [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, April 18, 2002 10:06 PM
To: aspngspeed
Subject: [aspngspeed] Output Caching Max Duration

In the book, ASP.NET Unleashed, Walther claims that output caching with
a duration of more than 5 minutes is treated as 5 minutes. Can someone
from MS confirm or deny this?

Steve

Steven Smith, MCSE+Internet, Microsoft MVP: ASP.NET
Click here to reveal e-mail address President, ASPAlliance.com
http://aspalliance.com The #1 ASP.NET Community
http://aspsmith.com ASP.NET Training for ASP Developers

Learning ASP.NET? Get My Book: ASP.NET By Example
http://www.amazon.com/exec/obidos/ASIN/0789725622/stevenatorasp/

| [aspngspeed] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngspeed.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification