Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me

Stop MAMP delay between saving and viewing changes

David Carr

Development Tutorials

I’ve noticed recently when using MAMP to test PHP 7 that changes are not shown right away when looking at the browser. Sometimes it can be a few seconds before the changes are updated. That can be misleading if you don’t reliase it’s cached. 

Turns out from PHP 5.5 opcache is turned on my default

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

This extension is bundled with PHP 5.5.0 and later

To turn it off located your php.ini file in my case it was located at my php/ect/php.ini and the opcache section and turn them off by placing a ; at the beginning.

; Determines if Zend OPCache is enabled

Stop and start the server, once it’s back up no delay will occur.


Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!


My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.