From a6e73b4a3c3e95809743314c8ff0a163eaaf720c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Jul 2025 06:33:42 +0200 Subject: refresh config from upstream --- 10-opcache.ini | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '10-opcache.ini') diff --git a/10-opcache.ini b/10-opcache.ini index b3d4e6e..a036eee 100644 --- a/10-opcache.ini +++ b/10-opcache.ini @@ -54,8 +54,6 @@ opcache.enable_cli=1 ; passes ;opcache.optimization_level=0x7FFFBFFF -; This hack should only be enabled to work around "Cannot redeclare class" -; errors. ;opcache.dups_fix=0 ; The location of the OPcache blacklist file (wildcards allowed). @@ -99,6 +97,15 @@ opcache.blacklist_filename=/etc/php.d/opcache*.blacklist ; for php-fpm, see /etc/php-fpm.d/*conf ;opcache.file_cache= +; Enables or disables read-only mode for the second level cache directory. +; It should improve performance for read-only containers, +; when the cache is pre-warmed and packaged alongside the application. +; Best used with `opcache.validate_timestamps=0`, `opcache.enable_file_override=1` +; and `opcache.file_cache_consistency_checks=0`. +; Note: A cache generated with a different build of PHP, a different file path, +; or different settings (including which extensions are loaded), may be ignored. +;opcache.file_cache_read_only=0 + ; Enables or disables opcode caching in shared memory. ;opcache.file_cache_only=0 -- cgit