docker-laravel/config/opcache.ini

18 lines
538 B
INI

; OPcache settings for Laravel (PHP 7.4+)
; JIT settings are appended automatically for PHP 8.0+ during build.
opcache.enable=1
opcache.enable_cli=1
; Memory — generous for large codebases
opcache.memory_consumption=256
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=20000
; File validation — safe for development; disable for production
; (set validate_timestamps=0 and revalidate_freq=0 in production)
opcache.validate_timestamps=1
opcache.revalidate_freq=2
; Optimisation
opcache.optimization_level=0x7FFEBFFF