I have an apache webserver that has the code mounted through SSHFS. When I make a change to a file on the remote computer, the webserver does not show the change. If I interact with the file in any way, such as cat
or vim
and do not make any changes, then the webserver will show the change correctly and the file modification time updates.
Is there a way to get the file modification time to update correctly, or perhaps I need to modify apache in some way so that it definitely reads the files (perhaps there is some sort of cache based on times that it uses which I could disable)?
cat
ing from? What happens if you write wait a minute, then try to access the page?-o cache=no
to the sshfs command then the changes are immediate. If you put that in an answer, I will mark it correct.