In addition to the answers related to addicted coding, and specific to people using MAMP PRO ... in current versions of MAMP PRO (I see on mamp.info that this is not an option on the free MAMP), you have the option to just disable the cache PHP
You can access it from the shortcut on the PHP tab in MAMP PRO. Or go to http://localhost:8888/MAMP/opcache.php# (change the host name and port according to your configuration).

It should also be noted that MAMP PRO (at least the latest versions) uses a dynamically created php.ini , so you cannot edit it on the local file system.
MAMP has the right to report editing files directly,
"You should always use the functions of the MAMP PRO template to edit the configuration files of the MAMP subsystem. If you change them bypassing MAMP PRO, your changes are most likely to be ignored or overwritten the next time the servers are started."
Instead, in MAMP PRO, go to FILE > Edit Template > PHP > [select the php version you wish to edit] and make the necessary changes. Of course, in the light of the information I gave above, this is really not necessary if you just want OPCACHE not to hold back your updated code output. Just disable OPCACHE in the interface.
You can also switch to using APC or XCache , as I have not noticed that none of them delay the update of code output.
inspirednz
source share