We’ve updated our article on OPcache configuration with new insights from our recent video.

It now covers the three configuration options responsible for most performance gains, plus additional OPcache details and tuning tips.

Read the updated article:

https://tideways.com/profiler/blog/fine-tune-your-opcache-configuration-to-avoid-caching-suprises?utm_medium=social&utm_source=mastodon&utm_campaign=fine-tune-your-opcache-configuration-to-avoid-caching-surprises

#PHP #OPcache #WebPerformance #PerformanceEngineering

@Tideways You mention (rightly) a couple of times that you need to access Opcache status et al, and control it through Apache or (nginx/)PHP-FPM.

I'd also add that https://github.com/gordalina/cachetool can interact with opcache, apcu and the filestat cache from the command line (over fast-cgi to PHP-FPM) to get stats, and deal with cached files/data. It's a very handy tool to see what is going on, and to help with optimisations.

GitHub - gordalina/cachetool: CLI App and library to manage apc & opcache.

CLI App and library to manage apc & opcache. Contribute to gordalina/cachetool development by creating an account on GitHub.

GitHub