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.