Cache Expiration and App Pool Worker Process Recycling

  • Thread starter Thread starter Jeremy S.
  • Start date Start date
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
 
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,
 
Back
Top