Skip to content

Commit 4532f45

Browse files
author
Bryan Latten
committed
Merge pull request #50 from bryanlatten/opcache-disable
Run: disabling opcache on debug start
2 parents a5a6bb8 + 3326798 commit 4532f45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

container/root/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ else
2222

2323
if [[ $CFG_APP_DEBUG = 1 || $CFG_APP_DEBUG = '1' || $CFG_APP_DEBUG = 'true' ]]
2424
then
25-
echo 'Opcache set to WATCH for file changes'
2625

2726
FASTCGI_PARAM_FILE=/etc/nginx/fastcgi_params
2827
echo 'Increasing fastcgi buffer size for debug headers'
@@ -31,6 +30,9 @@ else
3130
echo "fastcgi_buffer_size 16k;" >> $FASTCGI_PARAM_FILE
3231
echo "fastcgi_buffers 4 16k;" >> $FASTCGI_PARAM_FILE
3332

33+
echo 'Opcache disabled'
34+
php5dismod opcache
35+
3436
else
3537
echo 'Opcache set to PERFORMANCE, NOT watching for file changes'
3638
echo 'opcache.revalidate_freq=0' >> /etc/php5/mods-available/opcache.ini

0 commit comments

Comments
 (0)