Hi All,
Is there a easy way to clear all cache? I have tried
Response.Cache.SetExpires(DateTime.Now);
however, it dosn't seem to work. Just a quick summary of what I am doing, I
have a db driven web site where are the pages are dynamically created and
cached. When new data is entered, I would like to clear all the cached
pages so the new data can be used.
TIA
MDB
MDB - 22 Jul 2003 13:02 GMT
For you experts out there, do you think clearing the cache this way is
alright?
IEnumerator ie = Cache.GetEnumerator();
while(ie.MoveNext())
{
System.Collections.DictionaryEntry d = (DictionaryEntry)ie.Current;
Cache.Remove(d.Key.ToString());
}
> Hi All,
>
[quoted text clipped - 8 lines]
> TIA
> MDB