roots / trellis

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more
https://roots.io/trellis/
MIT License
2.51k stars 607 forks source link

Enable PHP opcache in development #1447

Closed swalkinshaw closed 2 years ago

swalkinshaw commented 2 years ago

Closes #1442

OPcache was previously disabled in development to ensure no stale cached PHP. However, there are still performance benefits to having OPcache enabled with a revalidate_freq of 0 which will result in OPcache checking for updates on every request (instead of the default of 60 in production).