title: C# ASP.NET: how to access cache when no HttpContext.Current is available (is null)?
body: <p>During <code>Application_End()</code> in Global.aspx, HttpContext.Current is null. I still want to be able to access cache - <em>it's in memory</em>, so want to see if I can reference it somehow to save bits to disk.</p>
  
  <p><strong>Question</strong> - is there a way to reference cache in memory somehow when HttpContext.Current is null?</p>
  
  <p>Perhaps I could create a global static variable that would store pointer to cache that I could update on HTTP requests (pseudo: <code>"static &lt;pointer X&gt;" = HttpRequest.Current</code>) and retrieve a reference to cache through that pointer in Application_End()?  </p>
  
  <p>Is there a better way to access Cache in memory when there is no Http Request is made?</p>