- 🇫🇷France andypost
It should help running tests a lot for new CI 📌 [PP-2] Speed up gitlab ci runs Postponed
- 🇫🇷France andypost
In PHP 8.4 new JIT engine coming https://github.com/php/php-src/pull/12079
PS: using
opcache.jit_buffer_size=20M
mostly all Drupal sites for last half year without issues but no preloading in a wild( - 🇷🇺Russia Chi
I just created one more generator for preload script.
https://www.drupal.org/project/opc →However, while profiling my project I found another way to optimize opcache.
There are a couple opcache settings which default values are not suitable for production.opcache.validate_timestamps=1 opcache.revalidate_freq=2
A typical Drupal sites loads about 1k - 2k files per request. With above configuration it'll revalidate opcache every 2 seconds.
Turning off
opcache.validate_timestamps
gave me almost same speed boost as preloading. I think, as long as you don't edit code on production that setting can be disabled. The invalidation should happen through php-fpm reload on deployment.