HighTechTalks DotNet Forums  

ASP.NET Caching - Inconsistency with CacheItemRemovedCallback delegate and dependencies between Windows XP and Windows 2003

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss ASP.NET Caching - Inconsistency with CacheItemRemovedCallback delegate and dependencies between Windows XP and Windows 2003 in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Shawn
 
Posts: n/a

Default ASP.NET Caching - Inconsistency with CacheItemRemovedCallback delegate and dependencies between Windows XP and Windows 2003 - 02-06-2006 , 01:34 PM






Hello,

I have been using the CacheItemRemovedCallback to trap each time an
object is released from the cache. I have also set up
dependencies(directory and cachekeys). With the identical code base
deployed to my local Windows XP box and a Windows 2003 server, I notice
two different behaviors.
1. On the Windows XP box, when an item is removed and has dependencies,
the original item and each of the dependant items will cause the
delegate to fire. All of the relevant items are removed from the cache
based on the dependencies.

2. On the Windows 2003 server, when the same item is removed and has
the same dependencies, only the original item being removed fires the
delegate. All of the relevant items are removed from the cache based on
the dependencies.

Can anyone explain why this might behave differently on the two
systems?

Thanks in advance,
Shawn


Reply With Quote
  #2  
Old   
Manso
 
Posts: n/a

Default RE: ASP.NET Caching - Inconsistency with CacheItemRemovedCallback dele - 03-06-2006 , 05:01 PM






There's something fishy with the cache, please see if this can help you...

http://msdn.microsoft.com/newsgroups...33e&sloc=en-us

"Shawn" wrote:

Quote:
Hello,

I have been using the CacheItemRemovedCallback to trap each time an
object is released from the cache. I have also set up
dependencies(directory and cachekeys). With the identical code base
deployed to my local Windows XP box and a Windows 2003 server, I notice
two different behaviors.
1. On the Windows XP box, when an item is removed and has dependencies,
the original item and each of the dependant items will cause the
delegate to fire. All of the relevant items are removed from the cache
based on the dependencies.

2. On the Windows 2003 server, when the same item is removed and has
the same dependencies, only the original item being removed fires the
delegate. All of the relevant items are removed from the cache based on
the dependencies.

Can anyone explain why this might behave differently on the two
systems?

Thanks in advance,
Shawn



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.