Title: WP 7.0-beta1 and opcache
Last modified: February 23, 2026

---

# WP 7.0-beta1 and opcache

 *  Resolved [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/wp-7-0-beta1-and-opcache/)
    - WordPress: 7.0-beta1
    - php 8.5
    - opcache enabled (file)
 * The site health tests the existence of opcache in includes/class-wp-site-health.
   php:
 *     ```wp-block-code
       2803: if ( function_exists( 'opcache_get_status' ) ) 
       ```
   
 * But [opcache_get_status](https://www.php.net/manual/en/function.opcache-get-status.php)“
   will not return any information about the file cache”. It returns false and site
   health reports “Opcode cacheDisabled”.
 * Is this check right? Searching the internet I get many answers about activating
   opcache. Most of them are about activating “opcache file cache”.
    -  This topic was modified 1 month, 1 week ago by [hupe13](https://wordpress.org/support/users/hupe13/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Patrick Lumumba](https://wordpress.org/support/users/lumiblog/)
 * (@lumiblog)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/wp-7-0-beta1-and-opcache/#post-18830979)
 * Hi [@hupe13](https://wordpress.org/support/users/hupe13/), you’ve diagnosed this
   correctly. It’s a bug.
 * `opcache_get_status()` intentionally returns `false` in `file_cache_only` mode(
   PHP documents this). So when only file-based opcache is active, WordPress incorrectly
   reports it as disabled.
 * The fix is to fall back to `opcache_get_configuration()`, which does work in 
   file-cache-only mode, and check for `opcache.enable`, `opcache.file_cache`, and`
   opcache.file_cache_only` being set. Worth opening a [Trac ticket](https://core.trac.wordpress.org/).
 *  Thread Starter [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/wp-7-0-beta1-and-opcache/#post-18831048)
 * I will open a trac ticket.
 * [https://core.trac.wordpress.org/ticket/64707](https://core.trac.wordpress.org/ticket/64707)
    -  This reply was modified 1 month, 1 week ago by [hupe13](https://wordpress.org/support/users/hupe13/).
      Reason: ticked number

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp-7-0-beta1-and-opcache%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 3 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [1 month, 1 week ago](https://wordpress.org/support/topic/wp-7-0-beta1-and-opcache/#post-18831048)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
