We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92f284 commit c96b559Copy full SHA for c96b559
.docker/bin/opcache
@@ -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
10
+ && echo '========= OPCache was enabled ========='
11
+fi
opcache
@@ -0,0 +1,3 @@
+docker-compose exec --user root apache opcache
0 commit comments