To clarify, this issue appears to only affect .php files. I can modify the contents of a .txt file or .htm file and see the results reflected in the browser immediately. However, when I change a .php file, I need to reboot the server in order to see the changes (nginx reload or force-reload doesn't make a difference).
Forge nginx config not refreshing static files
Has anybody else run into this issue? We host a lot of training modules that we create using Articulate Rise 360. Basically an online tool that code-generates a static htm file with a lot of javascript assets and embedded base64-encoded content that gets unpacked at runtime.
The problem we're having is that when we update these modules and re-publish them, the modified index file is copied over the top of the old one, and nginx continues serving the older copy until the server is restarted. Not ideal.
I have tried disabling sendfile altogether with sendfile off, but that didn't fix the issue.
I am about to start mucking about with open_file_cache in the hope that I can make some difference. If that fails I guess I'll try to exclude the files from the cache entirely with ACL rules.
Has anybody else seen this behaviour? It doesn't affect newly-created files, only changed files.
Please or to participate in this conversation.