Is there any way to disable Cache (System.Web.Caching.Cache, not OutPut cache for aspx page) on web.config or global.asax or else somehow?
Is there any way to disable Cache (System.Web.Caching.Cache, not OutPut cache for aspx page)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From MSDN,
Cache API Configuration Settings
You can configure the application’s cache API in your Web.config file. As with the page output cache, application hosters can set configuration properties in the Machine.config file and lock cache configuration settings for all applications. The application cache API is configured in the CacheSection.
You can specify application cache API configuration settings by assigning values to attributes such as DisableExpiration and DisableMemoryCollection within the configuration file’s CacheSection.
Word of caution: If the DisableMemoryCollection property is set to true, the cache does not attempt to collect unused items. Use caution when using this setting, as disabling memory collection can quickly lead to Out of Memory conditions for the application.
you can set it in the web.config or do this programatically,