From a499ae84752510bd9c2dca2edc476207bccc18e5 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 14 Jan 2019 04:36:24 +0100 Subject: [PATCH] update opcache settings --- etc/php/7.0/fpm/php.ini | 16 +++++++++------- etc/php/7.1/fpm/php.ini | 4 ++-- etc/php/7.2/cli/php.ini | 4 ++-- etc/php/7.2/fpm/php.ini | 4 ++-- etc/php/7.3/cli/php.ini | 4 ++-- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/etc/php/7.0/fpm/php.ini b/etc/php/7.0/fpm/php.ini index 2947c89..7c4100a 100644 --- a/etc/php/7.0/fpm/php.ini +++ b/etc/php/7.0/fpm/php.ini @@ -5,10 +5,10 @@ precision = 14 output_buffering = 8096 zlib.output_compression = Off implicit_flush = Off -unserialize_callback_func = +unserialize_callback_func = serialize_precision = 17 disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, -disable_classes = +disable_classes = zend.enable_gc = On expose_php = Off max_execution_time = 300 @@ -30,12 +30,12 @@ request_order = "GP" register_argc_argv = Off auto_globals_jit = On post_max_size = 128M -auto_prepend_file = -auto_append_file = +auto_prepend_file = +auto_append_file = default_mimetype = "text/html" default_charset = "UTF-8" -doc_root = -user_dir = +doc_root = +user_dir = enable_dl = Off file_uploads = On upload_max_filesize = 128M @@ -183,7 +183,9 @@ opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=256 opcache.save_comments=1 -opcache.revalidate_freq=1 +opcache.revalidate_freq=60 +opcache.validate_timestamps=1 +opcache.consistency_checks=0 [curl] diff --git a/etc/php/7.1/fpm/php.ini b/etc/php/7.1/fpm/php.ini index 8c12137..605b882 100644 --- a/etc/php/7.1/fpm/php.ini +++ b/etc/php/7.1/fpm/php.ini @@ -199,9 +199,9 @@ opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=256 opcache.save_comments=1 -opcache.revalidate_freq=1 +opcache.revalidate_freq=60 +opcache.validate_timestamps=1 opcache.consistency_checks=0 -opcache.validate_timestamps=0 [curl] diff --git a/etc/php/7.2/cli/php.ini b/etc/php/7.2/cli/php.ini index 077699c..5a40753 100644 --- a/etc/php/7.2/cli/php.ini +++ b/etc/php/7.2/cli/php.ini @@ -177,9 +177,9 @@ opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.memory_consumption=256 opcache.save_comments=1 -opcache.revalidate_freq=1 +opcache.revalidate_freq=60 +opcache.validate_timestamps=1 opcache.consistency_checks=0 -opcache.validate_timestamps=0 [curl] diff --git a/etc/php/7.2/fpm/php.ini b/etc/php/7.2/fpm/php.ini index 5ed79d5..e4604a0 100644 --- a/etc/php/7.2/fpm/php.ini +++ b/etc/php/7.2/fpm/php.ini @@ -178,8 +178,8 @@ opcache.max_accelerated_files=10000 opcache.max_wasted_percentage=10 opcache.memory_consumption=256 opcache.save_comments=1 -opcache.revalidate_freq=0 -opcache.validate_timestamps=0 +opcache.revalidate_freq=60 +opcache.validate_timestamps=1 opcache.consistency_checks=0 diff --git a/etc/php/7.3/cli/php.ini b/etc/php/7.3/cli/php.ini index abe932b..70220c4 100644 --- a/etc/php/7.3/cli/php.ini +++ b/etc/php/7.3/cli/php.ini @@ -175,8 +175,8 @@ opcache.max_accelerated_files=10000 opcache.max_wasted_percentage=10 opcache.memory_consumption=256 opcache.save_comments=1 -opcache.revalidate_freq=0 -opcache.validate_timestamps=0 +opcache.revalidate_freq=60 +opcache.validate_timestamps=1 opcache.consistency_checks=0