开发者

Clear Cache of a Compiled ASP.NET website?

开发者 https://www.devze.com 2023-01-15 16:39 出处:网络
I have various caches on my compiled开发者_JAVA技巧 website. However, I need to clear all these caches. Is there a way of doing this (without having to restart the server!)?

I have various caches on my compiled开发者_JAVA技巧 website. However, I need to clear all these caches. Is there a way of doing this (without having to restart the server!)?

Thanks! Curt


What cache mechanism are you using?

One typical method would be to have a routine such as:

        foreach (DictionaryEntry objItem in Cache)
        {
            Cache.Remove(objItem.Key.ToString());
        }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号