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