System.Web.Caching.Cache doesn't seem to refresh itself on time ?

耗尽温柔 提交于 2019-12-06 04:54:12
djeeg

The internal cache expire timer only fires every 20 seconds.

I reflected into System.Web.Caching.CacheExpires

But then found it already is on SO

Changing frequency of ASP.NET cache item expiration?

You may use PCache class which is implemented inside PokeIn library. The very good thing is, there is no limitation regarding to this class on FREE edition. It has many functionalities and far better than System.Web.Caching.Cache class..

Additionally, there is a sample project on the link. You may change TimerInterval down to 6 sec with PCache.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!