I have a quick question; when using cachedependency with an xml file, could a situation occur where two simultaneous requests cause one request to read the file to update the cache, and the other then crashes because the file is being accessed?
Matt
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.
Unless there is a serious implementation bug in the CacheDependency code, the first request will lock the file and the other requests will wait until the lock is removed or the state of the cache dependency updated.
This mechanism (CacheDepenendency) is designed for heavy traffic scenarios and I am sure such thing is covered…