Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a script that regularly updates itself on a scheduled task. It downloads a ZIP, then extracts and overwrites a bunch of app files with new ones.

We're seeing many cases on IIS where the updated files aren't "seen": Display oddities or in the worst cases, errors because a "new" file has somehow included a "old" file. Restarting IIS fixes the problem.

I've tried adding explicit calls to wincache_refresh_if_changed but this doesn't seem to fix it.

Does each FastCGI process use its own WinCache cache? So I'd need to refresh all of them (how?). But it seems to me that everything should "just work" since wincache.fcndetect is enabled.

share|improve this question
    
Why not just have the update script explicitly reload the site? I think that recycling the application pool may be all that you need to do to clear the cache, and you can definitely script that with powershell. –  Moshe Katz May 16 at 2:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.