Bug in the CacheDependency or Cache object? Help!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a file into a Cache entry that I insert and then delete a subdirectory in the same directory that the file is located in then my dependency is triggered and my cache object is deleted.

If I create a directory or delete another file in that same directory then the Cache is not bothered.

My CacheDependency specifies the full and proper file name and not just the directory path.

Is this a known problem?

Fix or workaround?

Thanks,
Dave at DotNetCodeSlingers dot com

.



Relevant Pages

  • RE: Remove Things in Application State After Period?
    ... you want to store some shared objects in the global ... Application State collecction and make it be cleared after a certain ... I think you'd better consider using the Application Cache instead ... you can supply a CacheDependency for each cache item so ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Bug in the CacheDependency or Cache object? Help!
    ... So in summary there is a bug in CacheDependency when used with Cache for a dependent file in the website roor that deletes the cached item if: ... Is this a bug or expected behaviour. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to cache links?
    ... Whenever you add an item to the cache you can attach the ... file or another kind of dependency. ... CacheDependency() seems to want an absolute path. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to test cache existence
    ... Good approach but I believe there is still an issue because it is a shared function - static in C# - that is accessible by all threads. ... Since the cache is also global and available to all threads/requests within the application, the code needs to reflect this by protecting insertions and retrievals. ... statement of GetCachedItem returns valid cache entry but the cache entry ... dim obj as Object = HttpRuntime.Cache ...
    (microsoft.public.dotnet.framework.aspnet)
  • Idea for improving linux buffer cache behaviour
    ... cache gets loaded with all this data I don't care about (the contents of the ... Also keep a count of how old the cache entry is. ... the cache entry is the current value of the counter minus the cache entry's ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)