Cache ? Or Not?
<p>I have an ajax application, it will call the webmethod in the Bussiness Server (WebGarden) and the webmethod will create file or delete file or getfiles from the File Server (RAID 1)  </p>

<p>My Problem is that if I do the following</p>

<ol>
<li>Directory.GetFiles(...)</li>
<li>CreateFile(or DeleteFile)</li>
<li>Directory.GetFiles        </li>
</ol>

<p>Then, I got the same result at 1 and 3</p>

<p>I think this is because the cache, but I dont know where has the cache and how can I fix the problem. </p>

<p>My Language is C# and the Server is Webgarden. maxworkprocess=4, Raid 1   </p>

<p><strong>ADD:</strong>
I think there is no problem with the code , because it had been working on it over 4 years, however when I moving the app to the new server, the problem always happens.</p>
