We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

IIS & locked cache files

Philip Meissner April 16, 2019 by Philip Meissner

My local & remote IIS/Statamic seem to be locking static cache files.

When I run: php please clear:static

I get the error "[RuntimeException] SplFileInfo::getType(): Lstat failed for C:\inetpub\wwwroot\ohc\static\conditions\diabetes_.html" <- could be any file

When I try to manually delete the file via file explorer, I get the message "You require permission from the computer's administrator to make changes to this file."

Restarting IIS doesn't seem to help. BUT if I RESTART my computer, I can run php please clear:static and everything gets deleted as expected. I can also manually delete the files as expected.

If this is a Statamic issue, let me know, and I'll open a github issue.

>>>>>>> Unanswered <<<<<<<
1 Reply
1 Follower