php-performance
Installation
SKILL.md
PHP Performance, Dependencies, Deployment & Observability
OPcache Configuration
OPcache stores compiled bytecode in shared memory, eliminating parse/compile per request. Typical 3-10x throughput gain.
; Production OPcache config
opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.interned_strings_buffer=16
opcache.validate_timestamps=0 ; MUST restart FPM on deploy
opcache.save_comments=1 ; Required by Laravel/DI containers
// ❌ Bad: No OPcache monitoring — silent degradation when cache is full
// Deploy and hope for the best