Caching is not being clear on site restart
Asked Answered
U

1

6

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.

Uptotheminute answered 23/2, 2013 at 4:28 Comment(1)
You mention caching on the question title, however, later on refer to settings? Could you please expand your question some more? Possibly with sample source code pin-pointing the problem better?Narcis
O
11

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.

Osmen answered 23/2, 2013 at 4:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.