bowler/docker/app/php-perf.ini

17 lines
659 B
INI

; Performance tuning for serving Laravel from a Windows bind mount,
; where every file stat/read crosses the slow 9p/gRPC-FUSE boundary.
; --- OPcache: keep compiled PHP in memory, rarely re-stat sources ---
opcache.enable=1
opcache.memory_consumption=192
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=20000
; Re-check file mtimes at most every 60s instead of every 2s.
; After editing PHP code, changes appear within a minute (or restart the container).
opcache.validate_timestamps=1
opcache.revalidate_freq=60
; --- Realpath cache: avoid repeated path resolution over the bind mount ---
realpath_cache_size=4096K
realpath_cache_ttl=600