I would like to reset/clear an item in the Cache, but without resetting the application or writing a specialized page just for this. ie, a non-programmatic solution. Is this possible?
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.
Short answer: No.
ASP.NET Cache doesn’t have a administration interface to manage it. You’ll need to recycle your application pool, or to to create a simple page to do Delete Items from the Cache in ASP.NET.
EDIT: Inspired on Mick answer, you could to have a page like this (
RemoveCache.aspx):If you call
RemoveCache.aspxall your cache will be removed; runningRemoveCache.aspx?name=Products, justProductscache entry will be removed.