WordPress operations · 30 November 2026

Why OPcache priming can compile zero files

The same theme can appear twice in a short list of PHP files to prime. If WordPress has already loaded its functions.php, compiling it again is wasted work. In Ace Redis Cache 0.11.1 the hot-file primer checks what PHP has already loaded before asking OPcache to compile anything.

By Shane Rounce · 1 minute read

The default list contains the WordPress index.php file and the functions.php files for the active stylesheet and template. With a child theme, those last two paths can point to two different files. With a standalone theme, both usually point to the same file.

Read the result

ARC resolves each candidate to its real path. It skips files already included in this request, skips duplicate paths and checks whether OPcache already holds the script. The list it returns contains only the files it compiled on this pass. An empty list on a healthy, warm site is an ordinary result.

If you need to know whether OPcache is available, look at the OPcache health panel. A count from a single priming pass answers a narrower question than the health of the PHP cache as a whole.

Check the right cache

OPcache stores compiled PHP scripts. Redis is the backend I recommend for the page and object caches. If the question after a release is whether a public archive has a saved page, start with the page cache response headers or the cache warmer. The PHP primer and the page warmer work on different things.

All notes Get the latest release