Skip to content

Commit f350167

Browse files
authored
Merge pull request #82 from vmasciotta/master
adding opcache disable enable script
2 parents e92f284 + c96b559 commit f350167

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.docker/bin/opcache

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -s "/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini" ]; then
4+
mv /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.iniOLD \
5+
&& /etc/init.d/apache2 force-reload \
6+
&& echo '========= OPCache was disabled ========='
7+
else
8+
mv /usr/local/etc/php/conf.d/docker-php-ext-opcache.iniOLD /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini \
9+
&& /etc/init.d/apache2 force-reload \
10+
&& echo '========= OPCache was enabled ========='
11+
fi

opcache

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker-compose exec --user root apache opcache

0 commit comments

Comments
 (0)