I've recently setup some caching for multiple websites that uses MemoryCache. The item I'm adding is a dataset and has an absolute expiry of 12 hours from the time it's added. What I want to know though, is there a way of clearing the cache manually, such as an IIS reset?
I couldn't find anything that categorically specified that memory cache would be cleared.
The reason behind this is that I need to test whether refreshed data in the database is picked up as expected if the cache is cleared. At the moment it doesn't seem to be clearing for all websites, which seems odd. So I need to figure out if this could be an issue with the app pools not restarting properly etc.