Activating OpCache

Closes #307
This commit is contained in:
Mahmoud Zalt 2016-09-15 10:47:58 -04:00
parent 8bb69beb84
commit 5640bd963d
3 changed files with 13 additions and 1 deletions

View File

@ -114,6 +114,9 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \
docker-php-ext-enable opcache \ docker-php-ext-enable opcache \
;fi ;fi
# Copy opcache configration
COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
# #
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Final Touch # Final Touch

View File

@ -125,6 +125,8 @@ RUN if [ ${INSTALL_OPCACHE} = true ]; then \
docker-php-ext-enable opcache \ docker-php-ext-enable opcache \
;fi ;fi
# Copy opcache configration
COPY ./opcache.ini /usr/local/etc/php/conf.d/opcache.ini
# #

7
php-fpm/opcache.ini Normal file
View File

@ -0,0 +1,7 @@
extension=opcache.so
opcache.enable="1"
opcache.memory_consumption="256"
opcache.use_cwd="0"
opcache.fast_shutdown="1"
opcache.max_file_size="0"
opcache.validate_timestamps="0"