title: How can we clear the server side cache in a button click in an asp.net application?
body: <p>I have a typical requirement over here.</p>
  
  <p>I have a web application developed in asp.net 4.0. In this application I want to add a button to one of the web form, which will perform the following task :</p>
  
  <ol>
  <li>It should clear the server side cache, by this I mean it should clear the cache of the same IIS server in which the application is hosted in.</li>
  </ol>
  
  <p>Now, I am aware of that we can achieve it manually by deleting the files present over here, </p>
  
  <pre><code>%systemroot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
  %systemroot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
  </code></pre>
  
  <p>And we need to shut down the IIS before deleting the temporary files and restart it again after that. In order to avoid any dependencies on the cached files.</p>
  
  <p>But I want to know how can I achieve it in the button click event of the web form.
  Please help me out with this requirement.</p>