Title: Analytics empty
Last modified: June 24, 2020

---

# Analytics empty

 *  [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/)
 * Hi,
    OPCache Analytics (Zend OPcache 7.4.7) is empty, while OPcache Management
   displays > 850 files (with some hits). I would expect them to show up in PerfOps
   Analytics OPcache, but Hit Ratio through Buffer Saturation = 0, Availability 
   = 100%. Am I missing something?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fanalytics-empty%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/analytics-empty/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/analytics-empty/page/2/?output_format=md)

 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13033638)
 * Hello!
    The issue you have may be due to two distinct causes: – your website 
   is hosted on a shared environment and the hoster (your provider) had disabled
   the OPCache query (unlikely). – your cron job is not fully operational (very 
   likely).
 * I suggest to investigate second possible cause first: has your website a specific
   cron job (do you have done / installed something special or is is just the standard
   WordPress cron)?
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13035305)
 * Hi,
    if I switch the OPcache PHP extension off and back on, it’s shown in OPcache
   Analytics in the “Status Events” panel.
 * Using just plain WP cron. In WP Crontrol I see several cron jobs, amongst which
   one on hook opcm_opcache_stas that runs OPcacheManager\Plugin\Feature\Capture::
   check()
 * Running on LSWS with Redis object cache.
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13039408)
 * Ha! Thanks for this details.
    It may come from Redis, can you tell me what specific
   plugin you use for Redis?
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13039420)
 * Hi,
    activated as object cache in LiteSpeed Cache plugin for WP (WP companion
   for sites on LiteSpeed Web Server).
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13039442)
 * Thanks.
    I will get an eye on this plugin during weekend. Maybe am I calling 
   it wrongly in OPcache Manager.
 * I will back to you as soon as I have news – or questions 😉
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13039874)
 * Hi, that would be great. But first enjoy your weekend!
    My site can do without
   both Redis and OPcache 😉 Of course your effort is greatly appreciated; nice 
   to see it solved. Don’t hesitate to write in case of any question. Thanks in 
   advance.
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13045569)
 * Hi!
    I was able to reproduce this issue with Redis (with Redis Object Cache plugin,
   LiteSpeed Cache but not with W3TC) only when Redis cache is activated AND where
   Redis servers are not working properly (unatainable servers for instance)… Can
   you confirm your Redis server(s) are working without issues?
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13045615)
 * Hi,
    Can’t confirm it’s working properly. Webhost told me I just needed a host
   IP and port number. With previous web host (2 weeks ago) I needed a password 
   and database ID as well. So I have host-IP 127.0.0.1 port **** and DB ID = 0.
   Hope this helps.
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13045623)
 * What happens if you disable Redis for, say, half an hour?
    Are the statistics
   visible? Does your site show unexpected behavior?
 * Thanks.
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13045652)
 * Hi,
    have Redis extension disabled. No notable difference or unexpected behavior(
   for now). Same speed & scores in GTmetrix. We’ll leave it there for a while 😉
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13045778)
 * Hi,
    in Query Monitor – on page /admin.php?page=opcm-viewer – I got a message
   that PHP errors occurred during an AJAX request. In dev console it reads:
 * [Warning] Object (query-monitor.js, line 371)
 * component: “Plugin installeren: opcache-manager”
 * file: “wp-content/plugins/opcache-manager/includes/features/class-schema.php”
 * key: “0b********************19c6”
 * line: 269
 * message: “implode(): Passing glue string after array is deprecated. Swap the 
   parameters”
 * stack: [“implode()”, “OPcacheManager\\P\\F\\Schema::get_std_kpi()”, “OPcacheManager\\
   P\\F\\Analytics->query_kpi()”, “OPcacheManager\\P\\F\\Analytics->query()”, “OPcacheManager\\
   P\\F\\AnalyticsFactory::get_stats_callback()”, “do_action(‘wp_ajax_opcm_get_stats’)”](
   6)
 * type: “deprecated”
    …………(goes on)
 * Of any help?
    -  This reply was modified 5 years, 9 months ago by [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/).
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13047320)
 * Hi!
    Thanks for the hint. This warning is due to a compatibility issue with PHP
   7.4… It will be fixed in the next release (I will push it in the next hours if
   all go well). Regarding the initial issue (blank analytics), I found something
   which is really “strange”: with some specific configurations (for plugin embedding
   Redis capabilities), transient/memory object are not stored the same way. It 
   can explain the issue you’re experiencing and the next release will implement
   a fix for that too.
 * Let me some hours to clean my code and push the new release on WP directory…
 * I’ll let you know as soon as the new release is ready.
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13047382)
 * Hi,
    turned out Redis object cache is not working on my site as it isn’t offered
   on shared hosting at my web host (though I can activate the PHP extension). LSC
   plugin has an option for storing transients in the db when object cache is turned
   off for the backend. Hope this helped to improve your plugin 😉 Thanks in advance
 *  Plugin Author [Pierre Lannoy](https://wordpress.org/support/users/pierrelannoy/)
 * (@pierrelannoy)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13047777)
 * New version is released 🙂
    When you’ve updated, will you let me know how it 
   turns out?
 * Thanks.
 * Note: it may take 10-15 minutes before first analytics appear.
 *  Thread Starter [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * (@mmwbadmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/#post-13048212)
 * Hi,
    sorry to say, but no difference. Records in table opcm_statistics now have
   status ‘enabled’ instead of ‘recycle_in_progress’ but other fields have value
   =0. Same behavior with PHP 7.2 Site diagnose (under PHP 7.4) suggests to use 
   object cache (R or M), but OPcache is running smoothly with >950 cached scripts–
   same as your plugin mentions – and hit rate = 90%

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/analytics-empty/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/analytics-empty/page/2/?output_format=md)

The topic ‘Analytics empty’ is closed to new replies.

 * ![](https://ps.w.org/opcache-manager/assets/icon-256x256.png?rev=2197379)
 * [OPcache Manager](https://wordpress.org/plugins/opcache-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opcache-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opcache-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/opcache-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opcache-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opcache-manager/reviews/)

 * 29 replies
 * 3 participants
 * Last reply from: [mmwbadmin](https://wordpress.org/support/users/mmwbadmin/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/analytics-empty/page/2/#post-13071153)
 * Status: not resolved