We use zedgraph webcontrols for charting in our asp.net (vb) web app. the temp directory for generated images fills up and now has reached 2GB+.
Is there a way to automatically clear this directory or do I have to implement a nasty HttpContext.Cache expired callback hack to delete old files from there?
Thanks, Flo
So rather than getting my hands dirty editing and recompiling zedgraphweb http://sourceforge.net/projects/zedgraph, I chose a more common apporach, dealing with the amount of files myself. I am using the Cache’s CacheItemRemovedCallback to execute code in a web app like using a timer. Aslo this code refills the cache item and therefore renews the cycle. voila: disk cleanup every 5 minutes in a web app.