Caching is not being clear on site restart

六月ゝ 毕业季﹏ 提交于 2019-12-07 06:45:11

问题


I am using singleton pattern to load some configurations which are in database. If I add some new configurations in database and restart the webservice then it doesn't load those settings. For this If I do restart the IIS server then it works fine.

I am not sure where does it reside?Is it loaded in App Domain and I need to restart AppDomain also? I m not clear why this is happening. Because if I restart the service from IIS it should clear all the information from app domain too but not happening.


回答1:


Stopping the Website will only stop accepting request while keeping your application in the same state. Worker process won't stop.

To restart the worker process, thus flushing the memory, you need to recycle the Application Pool.

You can read more about it.



来源:https://stackoverflow.com/questions/15037050/caching-is-not-being-clear-on-site-restart

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