title: ASP.NET Cache and File Dependancies
body: <p>I want a ASP.NET cache item to be recycled when a specific file is touched, but the following code is not working:</p>
  
  <pre><code>                       HttpContext.Current.Cache.Insert(
                              "Key",
                              SomeObject,
                              new CacheDependency(Server.MapPath("SomeFile.txt")),
                              DateTime.MaxValue,
                              TimeSpan.Zero,
                              CacheItemPriority.High,
                              null);
  </code></pre>
  
  <p>"SomeFile.txt" does not seem to be checked when I'm hitting the cache, and modifying it does not cause this item to be invalidated.</p>
  
  <p>What am I doing wrong?</p>