[wp-trac] [WordPress Trac] #64707: opcache

WordPress Trac noreply at wordpress.org
Mon Feb 23 17:50:59 UTC 2026


#64707: opcache
-------------------------------------+------------------------------
 Reporter:  hupe13                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Site Health              |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+------------------------------
Changes (by maulikmakwana2008):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 **Site Health: Fix OPcache detection when file cache is enabled**

 opcache_get_status() can return false when OPcache file cache is enabled,
 even though OPcache is active.
 This causes Site Health to incorrectly report the opcode cache as
 disabled.

 Update the detection logic to check whether the Zend OPcache extension is
 loaded and whether opcache.enable is set, and only rely on
 opcache_get_status() when it returns valid data.

 Fixes false negatives for OPcache file cache setups without affecting
 existing configurations.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64707#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list