Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / October 2004

Tip: Looking for answers? Try searching our database.

Cache file dependency stops working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Cox - 21 Oct 2004 14:30 GMT
Hello. I hope someone can help us.
We have an ASP.NET application that uses caching, which has given us
dramatic performance benefits..
We use file dependency expiry and sql triggers to create a file, so that we
can expire the cache when database updates are made.
It had been working fine until relatively recently when we noticed that
sometimes the cache was not being cleared as expected. The files are still
being created successfully and the name of the file matches the name of the
cache dependency.
It seems that after an amount of time (or maybe an amount of cached items)
the depency link is severed somehow.
If we reset the web app and thus flush everything, it works ok for a short
while and then stops working again.
We have a page that we use to manually clear items from cache, or indeed
clear everything from cache. This basically creates the files behind the
scenes and puts them in the cache dependency folder.
Using this to test with, I can see that it is working normally straight
after a web app reset. If I click the button everything is cleared from
cache. Sometime afterward (1hr-ish?) if I click the button items are not
cleared from cache.

Has anyone noticed anything like this before? All suggestions greatly
appreciated.

Cheers
Ian
Alvin Bruney [MVP] - 21 Oct 2004 22:20 GMT
Reset your cache dependency to fire every 5 minutes or so and write a log
somewhere. The idea is to find out when the dependency goes away. Then you
can see if this is a setting in your config file somewhere that somebody has
set.

Signature

Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok

> Hello. I hope someone can help us.
> We have an ASP.NET application that uses caching, which has given us
[quoted text clipped - 24 lines]
> Cheers
> Ian
Ian Cox - 22 Oct 2004 14:21 GMT
That's a good idea.
Unfortunately for us, we have had to disable the cache entirely now as it
was causing too many problems (putting the on/off switch in a config file
was one of our better moves).
Until we can recreate the issue in an evironment other than production (not
able to so far) then we are shooting in the dark...

> Reset your cache dependency to fire every 5 minutes or so and write a log
> somewhere. The idea is to find out when the dependency goes away. Then you
[quoted text clipped - 29 lines]
> > Cheers
> > Ian

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.