Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP changes slow to refresh in browser

Tags:

bash

php

macos

Ever since I added a .bash_profile on my Mac to point to a fresher version of PHP in MAMP, I've noticed my PHP changes take a long time to show in the browser localhost. It's absolutely killing me! I added the bash profile so I could install Laravel 4. Any fixes out there?

like image 278
rpasillas Avatar asked Sep 17 '26 11:09

rpasillas


1 Answers

Comment out the OPcache in your php.ini files.

/Applications/MAMP/conf/php5.5.3/php.ini

[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
like image 80
Brandon J Brotsky Avatar answered Sep 19 '26 01:09

Brandon J Brotsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!