From 1dd5ab0cadcc4f2920316b0d24f00a48f92424c8 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 5 Apr 2019 19:44:56 +0200 Subject: [PATCH] Add opcache.lockfile_path and opcache.lockfile_path to ini settings Some default opcache settings were missing. --- php.ini-development | 10 +++++++++- php.ini-production | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/php.ini-development b/php.ini-development index 138ed5e542b..5883743e53f 100644 --- a/php.ini-development +++ b/php.ini-development @@ -1713,7 +1713,7 @@ zend.assertions = 1 ;mbstring.http_output_conv_mimetype= ; This directive specifies maximum stack depth for mbstring regular expressions. It is similar -; to the pcre.recursion_limit for PCRE. +; to the pcre.recursion_limit for PCRE. ; Default: 100000 ;mbstring.regex_stack_limit=100000 @@ -1919,6 +1919,14 @@ ldap.max_links = -1 ; http://php.net/opcache.preload ;opcache.preload= +; Prevents caching files that are less than this number of seconds old. It +; protects from caching of incompletely updated files. In case all file updates +; on your site are atomic, you may increase performance by setting it to "0". +;opcache.file_update_protection=2 + +; Absolute path used to store shared lockfiles (for *nix only). +;opcache.lockfile_path=/tmp + [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. diff --git a/php.ini-production b/php.ini-production index 4125de2a1df..5ae76c810a0 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1720,7 +1720,7 @@ zend.assertions = -1 ;mbstring.http_output_conv_mimetype= ; This directive specifies maximum stack depth for mbstring regular expressions. It is similar -; to the pcre.recursion_limit for PCRE. +; to the pcre.recursion_limit for PCRE. ; Default: 100000 ;mbstring.regex_stack_limit=100000 @@ -1926,6 +1926,14 @@ ldap.max_links = -1 ; http://php.net/opcache.preload ;opcache.preload= +; Prevents caching files that are less than this number of seconds old. It +; protects from caching of incompletely updated files. In case all file updates +; on your site are atomic, you may increase performance by setting it to "0". +;opcache.file_update_protection=2 + +; Absolute path used to store shared lockfiles (for *nix only). +;opcache.lockfile_path=/tmp + [curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path.