From a9515db315f3dba7aefd045e5ac7df0021e7a67a Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 14 May 2018 17:12:31 +0200 Subject: [PATCH] add php opcache, closes https://github.com/opnsense/core/issues/2320 --- www/php-opcache/Makefile | 7 +++++++ www/php-opcache/pkg-descr | 1 + www/php-opcache/src/etc/php/ext-10-opcache-settings.ini | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 www/php-opcache/Makefile create mode 100644 www/php-opcache/pkg-descr create mode 100644 www/php-opcache/src/etc/php/ext-10-opcache-settings.ini diff --git a/www/php-opcache/Makefile b/www/php-opcache/Makefile new file mode 100644 index 000000000..d8c5bad14 --- /dev/null +++ b/www/php-opcache/Makefile @@ -0,0 +1,7 @@ +PLUGIN_NAME= php-opcache +PLUGIN_VERSION= 1.0 +PLUGIN_COMMENT= PHP OPcache +PLUGIN_DEPENDS= php${PLUGIN_PHP}-opcache +PLUGIN_MAINTAINER= ad@opnsense.org + +.include "../../Mk/plugins.mk" diff --git a/www/php-opcache/pkg-descr b/www/php-opcache/pkg-descr new file mode 100644 index 000000000..4ec19a728 --- /dev/null +++ b/www/php-opcache/pkg-descr @@ -0,0 +1 @@ +Add and enable php OPcache for the web gui to accelerate requests. diff --git a/www/php-opcache/src/etc/php/ext-10-opcache-settings.ini b/www/php-opcache/src/etc/php/ext-10-opcache-settings.ini new file mode 100644 index 000000000..a582022b7 --- /dev/null +++ b/www/php-opcache/src/etc/php/ext-10-opcache-settings.ini @@ -0,0 +1,8 @@ +opcache.enable=1 +opcache.enable_cli=0 +opcache.memory_consumption=128 +opcache.interned_strings_buffer=4 +opcache.max_accelerated_files=20000 +opcache.fast_shutdown=1 +opcache.enable_file_override=0 +opcache.validate_timestamps=0