|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cache Expiration and App Pool Worker Process RecyclingJust 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, 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 > 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 >
Insert text contain code
free or cheap html editor (client side) SESSION_END Questions Controling cache expiration Setting up an Isolated .NET Team Environment WebUser Control Usage! Is access to the Session thread-safe? !! DOWNLOAD THE MOST POPULAR 2005's CRACKED SOFTWARE !! delegates Tabstrip with remove item |
|||||||||||||||||||||||