Home All Groups Group Topic Archive Search About

Cache Expiration and App Pool Worker Process Recycling

Author
28 Mar 2005 5:51 AM
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

Author
28 Mar 2005 2:18 PM
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,

Show quoteHide quote
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
>
Are all your drivers up to date? click for free checkup

Author
28 Mar 2005 2:21 PM
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.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> 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
>



Post Thread options