PHP unlink Delay
<p>I'm having some issue with the <code>unlink</code> function.</p>

<p>I have a page that when refreshed, it searches a directory for newly added files. The user may choose to manage the files and can also delete any file. However, when the user deletes the file, there is almost a 5 second delay before the actual file is deleted from the server directory. In the meantime, if the user refreshes the browser, that same file that was supposed to be deleted re-appears as a new file. The issue with this is that if the user deletes this file again, the file no longer exists because of that initial delay...</p>

<p>Any thoughts on this? It's driving me crazy and not sure how to remedy this situation...</p>
