You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP changes not taking immediate effect in local #156
After applying the provision playbook fix from #151 and bringing up a vm without varnish, @weeirishman was still seeing PHP script changes be actively ignored short of an apache restart.
Though he is still investigating and ruling out other possible causes, we suspect it was a side effect of PHP 5.5's opcache, in which case this may bypass it for local stages (diff updated):
This patch worked for me 98% of the time initially. There were still a few refreshes that didn't bring in the changes. Then after a few hours it got as bad as ever.
This morning I changed the following line in /etc/php5/apache2/php.ini:
opcache.enable=0 - previously commented out. Now things are running better again, but I don't know if that's from the Apache restart I had to do to get the php.ini changed picked up.
@weeirishman You may want to try opcache.consistency_checks=1 in combination with revalidate_freq (rather than disabling opcache altogether), to see if that addresses the caching issues...
It will affect performance a bit, but that's to be expected for a dev environment, and should still be more performant than turning off opcache
Yes sorry, I gave that a shot and it was substantially better, but I still had issues throughout the day. Not enough to say it was every X refreshes, but it was not as solid as disabling. I went back to working with it disabled and have had no issues since.
Activity
weeirishman commentedon Dec 1, 2016
This patch worked for me 98% of the time initially. There were still a few refreshes that didn't bring in the changes. Then after a few hours it got as bad as ever.
This morning I changed the following line in
/etc/php5/apache2/php.ini:opcache.enable=0- previously commented out. Now things are running better again, but I don't know if that's from the Apache restart I had to do to get thephp.inichanged picked up.Will report back after a few hours.
EvanK commentedon Dec 1, 2016
@weeirishman You may want to try
opcache.consistency_checks=1in combination withrevalidate_freq(rather than disabling opcache altogether), to see if that addresses the caching issues...It will affect performance a bit, but that's to be expected for a dev environment, and should still be more performant than turning off opcache
EvanK commentedon Jan 4, 2017
Was there any update on this?
weeirishman commentedon Jan 4, 2017
Yes sorry, I gave that a shot and it was substantially better, but I still had issues throughout the day. Not enough to say it was every X refreshes, but it was not as solid as disabling. I went back to working with it disabled and have had no issues since.