I made several edits to a page-template in my theme then saved the file and refreshed my browser to find the changes were not reflected in the browser.
Troubleshooting Questions
Does this happen for all sites in Local, or just one in particular?
This was only experienced on one site, it was only tested in one site.
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Perhaps, but that was not one of the steps I took to resolve this problem.
Replication
Change a file and refresh the browser.
System Details
Which version of Local is being used?
V 6.1.8+5621
What Operating System (OS) and OS version is being used?
macOS Big Sur 11.6
Things I’ve tried:
Review local log for errors - no errors present.
Stop and restart site in Local - no change
Stop site, quit local, reopen local, restart site - no change
Stop site, quit local, close Chrome, reopen local, restart site - no change
Check site in Safari - issue repeated safari
Stop site, quit local, restart computer, open local, start site - issue persisted
Compare files in editor to files in finder - files match and nothing looks out of the ordinary.
Review Local Community Support and Bug topics for similar issues - none found
Change different php file x2 - no change detected from these files either.
Pull ico file from WP Engine to Local - I was hoping this would reload things under the hood, but the files were still not showing as updated in the browser.
Log in to site - saw the changes I expected when I navigated to the front end.
Log out of site - saw the same “stuck” (pre changes) file on the site.
Log back in and continue work on file.
I am curious if anyone else has experienced this issue and if so, how they were able to resolve it.
I am able to continue working while logged in for now.
That seems like a theme level issue, and from the description, it seems like it’s due to caching. Is there any change if you try viewing the site with a different browser?
Yes. I primarily use Chrome for development so I viewed the site in Safari to see if the issue was persistant. I see the same unexpected behavior in Safari as I experience in Chrome.
Redownload, reinstall local, reconnect with new API key to WP Engine.
Test that file changes are detected by theme from pull - they are! YAY!
Override existing theme files with reserved theme files.
Test that file changes are being detected - Yes so far! YAY success!
I found this article about caching issues for another user that is very similar to my problem, but they were able to confirm it was an issue with their theme. However, I am not using the same theme and the problem seems to be resolved without any change to my theme files. I am fairly certain that the issue was somewhere in Local caching, but I was unable to discover it.
I will keep this post updated if there are any further developments to share. Thank you for reading