Cache Expiration and App Pool Worker Process Recycling

J

Jeremy S.

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
 
S

Scott Allen

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,
 
B

Brock Allen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top