Title: opcache_get_status function disabled
Last modified: January 10, 2025

---

# opcache_get_status function disabled

 *  Resolved [Matta Cib](https://wordpress.org/support/users/matta-cib/)
 * (@matta-cib)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/opcache_get_status-function-disabled/)
 * Hello,
   I get the following message on the ‘OpCache’ tab: ‘No data is available.
   The opcache_get_status function disabled in PHP configuration.’ Accordingly, 
   the entries ‘Cache Hits’, ‘Cached Files’ etc. all have the value ‘0’. And now
   I would like to know please how I can change the status to enabled.However, on
   the ‘Overview’ tab it says, among other things:
    - Object Cache 9M object of 49000 files
    - Zend OPcache Enabled
      I have also looked in the wp-content/cache/docket-cache/
      directory, where there are currently 57,670 php files.Can I conclude from 
      this that Docket Cache is working after all and only the display on the ‘OpCache’
      tab is not correct? If so, how can I get the display to be correct?Incidentally,
      there is no error in the php-error.log that points to Docket Cache or OpCache.
      Thanks for your help and kind regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fopcache_get_status-function-disabled%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/opcache_get_status-function-disabled/#post-18237271)
 * Hi there,
 * Docket Cache uses the “opcache_get_status” function to get OPcache status information.
   It seems that “opcache_get_status” has been disabled on your hosting.
 * This behaviour is common for shared hosting servers where OPcache is deployed
   globally across hosting accounts. Disabling it will protect file listings on 
   other accounts.
 * > Can I conclude from this that Docket Cache is working after all and only the
   > display on the ‘OpCache’ tab is not correct?
 * Yes, Docket Cache works for object caching but cannot use OPcache to speed up
   cache performance.
 * > If so, how can I get the display to be correct?
 * The “opcache_get_status” function must be enabled to display OPcache status information.
   You may contact your hosting provider to enable it, if possible.
 * References:
 * [https://www.php.net/manual/en/function.opcache-get-status.php](https://www.php.net/manual/en/function.opcache-get-status.php)
 * Thanks.
 *  Thread Starter [Matta Cib](https://wordpress.org/support/users/matta-cib/)
 * (@matta-cib)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/opcache_get_status-function-disabled/#post-18239508)
 * Hello Nawawi,
   thank you for the information and I have forwarded it to my hosting
   provider. They will probably reply tomorrow (Monday) and I will then give some
   brief feedback.Thank you and best regardsMatta
 *  Thread Starter [Matta Cib](https://wordpress.org/support/users/matta-cib/)
 * (@matta-cib)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/opcache_get_status-function-disabled/#post-18243662)
 * Hello Nawawi,
 * the hosting provider resolved the problem. Thanks again!
 * Kind regards
 * Matta
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/opcache_get_status-function-disabled/#post-18244292)
 * Hi Matta,
 * You’re welcome. I’m marking this thread as resolved.
 * Thanks.

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

The topic ‘opcache_get_status function disabled’ is closed to new replies.

 * ![](https://ps.w.org/docket-cache/assets/icon-256x256.png?rev=2425893)
 * [Docket Cache - Object Cache Accelerator](https://wordpress.org/plugins/docket-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/docket-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/docket-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/docket-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/docket-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/docket-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/opcache_get_status-function-disabled/#post-18244292)
 * Status: resolved