This has come up a number of times in other threads, and I've tried every solution that I found with no luck.
Running MAMP Pro v6.6.3, and the opcache module is running wild. All my php pages are bing cached seemingly individually, meaning that I can have multiple versions of edits across any number of pages. Not great for productivity!
Even waiting a few minutes doesn't seem to clear any kind of cache - the changes seem to be indefinite, and update on in the browser only when they feel like it.
I have:
- Commented out all opcache options in php.ini via the File > Open Template option, and also edited the same in /Applications/MAMP/bin/php/php[version]/conf/php.ini, saving and restarting MAMP each time
- Changed
opcache.enable=1
toopcache.enable=0
in php.ini via the File > Open Template option, and also edited the same in /Applications/MAMP/bin/php/php[version]/conf/php.ini, saving and restarting MAMP each time - Changed
opcache.revalidate_freq=2
(or sometimesopcache.revalidate_freq=1
) toopcache.revalidate_freq=0
in php.ini via the File > Open Template option, and also edited the same in /Applications/MAMP/bin/php/php[version]/conf/php.ini, saving and restarting MAMP each time - Uncommented
opcache.validate_timestamps=1
in php.ini via the File > Open Template option, and also edited the same in /Applications/MAMP/bin/php/php[version]/conf/php.ini, saving and restarting MAMP Pro each time - Installed and tried various versions of php throughout 5, 7 and 8, and then repeated all of the above (or the version-appropriate equivalent of) for each php.ini for that version.
- Checked my laptop where MAMP Pro is also installed where there were previously no issues - now somehow it’s happening on there too?! I can't think of any sensible reason this would be. I don't use the laptop that often and no updates have been made.
- Tried different browsers, thinking it might be a browser cache problem. It’s not. This is occurring on browsers that I’ve never even used for this project before, and the cached version is being served on the first/initial page load.
I am also finding that this is continuing to happen even if phpinfo() seems to show opcache as being disabled.
“Cache module to speed up execution” is set to “off” in the php settings via the MAMP Pro interface.
Other threads with similar issues:
Can anybody please offer some insight? Is there something that I haven’t tried yet, or have failed to see?
Thanks.