Preloading
18/45
FFI — Foreign Function Interface
Preloading
•
OPcache is awesome
•
It prevents a lot of work "compiling" PHP files
•
Still overhead: class resolving, checking whether files have modified, cache size/evictions
Added in 7.4:
A new
php.ini
directive:
opcache.preload
With this directive you can specify a single PHP file which will perform the preloading task.
https://wiki.php.net/rfc/preload