Update cached file if the original file changes

We get both the cached and original file paths and then run filemdate() to compare their modification times. If the cached version is older than the original it'll force an update.