[wp-trac] [WordPress Trac] #63697: Add OPCache to Site Health
WordPress Trac
noreply at wordpress.org
Mon Jul 14 02:18:08 UTC 2025
#63697: Add OPCache to Site Health
-------------------------+-----------------------------
Reporter: oglekler | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Site Health | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: performance
-------------------------+-----------------------------
Changes (by rollybueno):
* keywords: has-patch => 2nd-opinion
Comment:
Since this is accepted to **Future Release**, I've submitted initial patch
that can be extended as the ticket progresses.
First it will check for OPCache extension availability, then if loaded, it
will use opcache_get_status() to get the following information:
used_memory + free_memory = OPcache memory usage, opcache_hit_rate,
num_cached_scripts and num_cached_keys. These can be updated once we
decided what information we need to display here.
I take these keys from https://www.php.net/manual/en/function.opcache-get-
status.php response, but I have not fully tested yet. Only this
information is available so far:
[[Image(https://i.imgur.com/jIOr76C.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63697#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list