OPcache prevents repeated PHP parsing. It’s one of the highest-impact performance tuning steps for WordPress.
Recommended settings
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=10000
Restart PHP-FPM after changes:
sudo systemctl restart php8.3-fpm
Use PHP-FPM restart vs reload when reload isn’t enough.
Related
- Performance tuning for WordPress on Ubuntu + Apache + PHP-FPM — full tuning guide