469,270 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Cache Expiration and App Pool Worker Process Recycling

Just wondering if/how a sliding Cache expiration interacts with Application
Pool Worker Process Recycling.

Specifically, if I were to place some value into the Cache object with a
sliding window of 2 hours, but [Recycle worker process (in minutes)]
property setting for the relevant App Pool is 1 hour (and there is no
activity following the placement of the data into the Cache), then WILL the
data automatically be removed from the Cache when the App Pool recycles? Or,
is it *possible* that the App Pool would recycle AND the data would still be
available in the Cache?

Thanks
Nov 19 '05 #1
2 2138
Hi Jeremy:

When the app recycles all in memory objects and state are lost. A new
app will spin up with an empty cache, empty session, unitialized
static/shared fields, etc.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 27 Mar 2005 21:51:30 -0800, "Jeremy S." <GS@NoSpam.net> wrote:
Just wondering if/how a sliding Cache expiration interacts with Application
Pool Worker Process Recycling.

Specifically, if I were to place some value into the Cache object with a
sliding window of 2 hours, but [Recycle worker process (in minutes)]
property setting for the relevant App Pool is 1 hour (and there is no
activity following the placement of the data into the Cache), then WILL the
data automatically be removed from the Cache when the App Pool recycles? Or,
is it *possible* that the App Pool would recycle AND the data would still be
available in the Cache?

Thanks


Nov 19 '05 #2
The data cache in ASP.NET is scoped to the AppDomain, so yes, a recycle will
cause the data in the cache to be purged.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Just wondering if/how a sliding Cache expiration interacts with
Application Pool Worker Process Recycling.

Specifically, if I were to place some value into the Cache object with
a sliding window of 2 hours, but [Recycle worker process (in minutes)]
property setting for the relevant App Pool is 1 hour (and there is no
activity following the placement of the data into the Cache), then
WILL the data automatically be removed from the Cache when the App
Pool recycles? Or, is it *possible* that the App Pool would recycle
AND the data would still be available in the Cache?

Thanks


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Param R. | last post: by
3 posts views Thread by MattC | last post: by
1 post views Thread by Olav Tollefsen | last post: by
1 post views Thread by Jeremy S. | last post: by
2 posts views Thread by Sergey via DotNetMonster.com | last post: by
10 posts views Thread by =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post: by
5 posts views Thread by J055 | last post: by
4 posts views Thread by Oriane | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.