Support » Plugin: Redis Object Cache » Metrics: Not enough data collected yet

  • Resolved ashotaslanian

    (@ashotaslanian)


    Hi. On my redis-cache settings, metrics tab i cannot see any stats, i’m getting the message above.

    Diagnostics:

    Status: Connected
    Client: PhpRedis (v5.3.7)
    Drop-in: Valid
    Disabled: No
    Ping: 1
    Errors: []
    PhpRedis: 5.3.7
    Relay: Not loaded
    Predis: Not loaded
    Credis: Not loaded
    PHP Version: 8.1.5
    Plugin Version: 2.0.25
    Redis Version: 5.0.7
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 7
    Filesystem: Could not initialize filesystem.
    Global Prefix: "wp_iftehw_"
    Blog Prefix: "wp_iftehw_"
    WP_REDIS_HOST: "host.docker.internal"
    WP_REDIS_TIMEOUT: 10
    WP_REDIS_READ_TIMEOUT: 10
    WP_REDIS_MAXTTL: 43200
    WP_REDIS_IGNORED_GROUPS: []
    Global Groups: [
        "blog-details",
        "blog-id-cache",
        "blog-lookup",
        "global-posts",
        "networks",
        "rss",
        "sites",
        "site-details",
        "site-lookup",
        "site-options",
        "site-transient",
        "users",
        "useremail",
        "userlogins",
        "usermeta",
        "user_meta",
        "userslugs",
        "redis-cache",
        "blog_meta"
    ]
    Ignored Groups: [
        "counts",
        "plugins",
        "themes"
    ]
    Unflushable Groups: []
    Drop-ins: [
        "Redis Object Cache Drop-In v2.0.25 by Till Krüss"
    ]

    some redis troubleshooting from older posts:

    127.0.0.1:6379> KEYS *redis-cache*
    1) "wp_iftehw:redis-cache:metrics"
    127.0.0.1:6379> MGET wp_itftehw:redis-cache:metrics
    1) (nil)
    127.0.0.1:6379> MGET wp_itftehw:post_meta:1069
    1) (nil)
    127.0.0.1:6379> HGETALL 1:redis-cache:metrics
    (empty list or set)
    127.0.0.1:6379> HGETALL wp_iftehw:redis-cache:metrics
    (error) WRONGTYPE Operation against a key holding the wrong kind of value
    127.0.0.1:6379> TYPE wp_iftehw:redis-cache:metrics
    zset
    127.0.0.1:6379> zrangebyscore wp_iftehw:redis-cache:metrics 0 99999999999999 WITHSCORES
    (empty list or set)
    127.0.0.1:6379> zrangebyscore wp_iftehw:redis-cache:metrics 0 99999999999999999999999 WITHSCORES
    (empty list or set)
    127.0.0.1:6379>
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Is maybe a 3rd party plugin constantly flushing the cache?

    Is your ad-blocker blocking the script?

    Thread Starter ashotaslanian

    (@ashotaslanian)

    adblock is disabled for my domain, as well as other content blockers.

    i actually dont have other cache related plugins.

    Complianz | GDPR/CCPA Cookie Consent
    Contextual Related Posts
    IndexNow
    Redis Object Cache
    Social Media and Share Icons (Ultimate Social Media)
    Social Media Auto Publish
    WP Mail SMTP
    Yoast SEO
    Plugin Author Till Krüss

    (@tillkruess)

    Are you seeing any browser console errors?

    Thread Starter ashotaslanian

    (@ashotaslanian)

    I hope I did this right. atm i am using safari, but can try from under firefox too if needed.

    i have opened the web inspector navigated to Console.

    here is the only error message there.

    [Error] SecurityError: Blocked attempt to use history.replaceState() to change session history URL from https://mywebsitedomain/wp-admin/options-general.php?page=redis-cache#metrics to https://my.ip.add.ress/wp-admin/options-general.php?page=redis-cache#metrics. Protocols, domains, ports, usernames, and passwords must match.
    	replaceState (options-general.php:93)
    	Global Code (options-general.php:93)
    Plugin Author Till Krüss

    (@tillkruess)

    If there are no PHP error logs, no other errors in your browser console and you don’t use an adblocker, then I assume your cache is constantly being flushed.

    Thread Starter ashotaslanian

    (@ashotaslanian)

    hm. this is interesting. maybe i have messed up with redis config?

    how can i confirm this and if so, what should i be doing?

    Plugin Author Till Krüss

    (@tillkruess)

    I’d keep an eye on Metrics recorded in your diagnostics, see how high that goes.

    Thread Starter ashotaslanian

    (@ashotaslanian)

    that’ll be

    zrangebyscore wp_iftehw:redis-cache:metrics 0 99999999999999999999999 WITHSCORES

    right?

    target would be having it non nil, correct?

    irrelevant. i misunderstood the reply.

    Thread Starter ashotaslanian

    (@ashotaslanian)

    just checked the diagnostics logs again:

    
    Metrics: Enabled
    Metrics recorded: 0
    Filesystem: Could not initialize filesystem.
    

    does this mean that something indeed flushes the cache?

    Plugin Author Till Krüss

    (@tillkruess)

    
    ZCOUNT wp_iftehw:redis-cache:metrics -inf +inf
    

    This will show the metrics count directly in Redis.

    If it doesn’t grow, some plugin in continuously flushing your cache.

    Thread Starter ashotaslanian

    (@ashotaslanian)

    i redeployed the website with redis 7 recently and issue seems no more.

    not sure that the redis upgrade fixed it tho.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.