Stop caching for PHP 5.5.3 in MAMP
Disable OPCache
MAMP now turns on OPCache by default, you can disable it by editing your php.ini file. Make sure you edit the correct php.ini.
I was running into the same problem myself. MAMP with PHP version 5.5.3 runs OPcache by default, but you can't turn it off in the GUI like you can with the older PHP version 5.2.17. You have to manually comment out all the OPcache lines at the end of the php.ini file (MAMP/bin/php/[version]/conf/php.ini) and make sure to stop and start the servers for the changes to take effect.
I updated the URI, the changes can be reflective by also changing /conf/ under the php folder, but it seems MAMP will ignore these after restart.
Turn off Caching in MAMP
@Philippe, Ensure you commented out OPcache in
/Applications/MAMP/bin/php/php5.5.3/conf/php.ini
not the one in
/Applications/MAMP/conf/php5.5.3/php.ini
php edits not displayed immediately when using MAMP in OSX and PHP Version 5.5.3
There is a cache, in your MAMP preferences if you use the php version 5.5.3.
The same thing happen to me, I found the solution there: MAMP time between seeing live changes
In your MAMP Dir go to : /bin/php/php5.5.3/conf/php.ini
And comment the Opcahe lines:
[OPcache]
;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
; opcache.memory_consumption=128
; opcache.interned_strings_buffer=8
; opcache.max_accelerated_files=4000
; opcache.revalidate_freq=60
; opcache.fast_shutdown=1
; opcache.enable_cli=1
MAMP time between seeing live changes
The solution is to comment out lines in the php.ini file which can be found in /MAMP Directory/bin/php/php5.5.3/conf/php.ini
Comment out Opcache:
[OPcache]
;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
; opcache.memory_consumption=128
; opcache.interned_strings_buffer=8
; opcache.max_accelerated_files=4000
; opcache.revalidate_freq=60
; opcache.fast_shutdown=1
; opcache.enable_cli=1
Documentation (yes it started in 5.5):
http://www.php.net/manual/en/intro.opcache.php
Related Topics
Php: Convert Milliseconds to Date
Create a Comma-Separated String from a Single Column of an Array of Objects
How to Add New Column to MySQL Table
Determining What Classes Are Defined in a PHP Class File
How to Display a Date as Iso 8601 Format with PHP
Is Making Asynchronous Http Requests Possible with PHP
Access Get Directly from JavaScript
Date Function Output in a Local Language
Best Way to Transfer an Array Between PHP and JavaScript
Correct Way to Set Bearer Token with Curl