• Resolved futureyoon

    (@futureyoon)


    Hi

    I am getting redirect too many times when I try to update some status from the backend and I noticed that it’s happening only when I enable ‘Redis’ object cache plugin.

    Please take a look https://www.screencast.com/t/TDo1e22GVrl

    I have crosschecked with the plugin owner (gamipress) that it what I have received from them.

    —-
    About the redirections, our Referrals add-on (as any other plugin with backend functionalities) makes 2 redirects, when you click an action link you get redirected to the action (like wp-admin.php/?action=X) and when the action is processed the action itself redirects you to the URL you are at the moment you click the action link.

    This workflow happens with all actions in WordPress and in any plugin since is the standard that WordPress requires for this kind of actions.

    Anyway, this is completely outside our support and you may need to see it with Redis.

    —-

    I have tried sudo redis-cli flushall but no help.

    I can share the credential of the staging site for you to witness the issue and possible troubleshoot

    Please advise me how to reslove this issue.

    Thank you

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Try a full flush: redis-cli FLUSHALL and make sure all WordPress sites use a different WP_REDIS_DATABASE number.

    Thread Starter futureyoon

    (@futureyoon)

    Thx for the info.

    I have tried full flush and different database (i tried 0, 1, 2, 3, 4, 5), the issue still persists.

    Please take a look https://www.screencast.com/t/F0n5aR5LpVqX

    Any idea?

    Thread Starter futureyoon

    (@futureyoon)

    just for the comparison,

    Redis feature from w3 total cache plugin works fine with this process.

    but I don’t use that plugin, so i still need to figure out how to fix this issue.

    Please kindly advise. Thx

    Plugin Author Till Krüss

    (@tillkruess)

    Try disabling other plugins, if any of those case the issue.

    Thread Starter futureyoon

    (@futureyoon)

    i have disabled all the plugins and still the same..

    just wondering if you are keen to fix this issue. let me know.

    Thread Starter futureyoon

    (@futureyoon)

    in case you need this.

    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.12
    Plugin Version: 2.2.3
    Redis Version: 6.0.16
    Multisite: No
    Metrics: Enabled
    Metrics recorded: 1
    Filesystem: Working
    Global Prefix: "wp_"
    Blog Prefix: "wp_"
    WP_REDIS_PLUGIN_PATH: "/bitnami/wordpress/wp-content/plugins/redis-cache"
    WP_REDIS_GLOBAL_GROUPS: [
    "users",
    "userlogins",
    "usermeta",
    "user_meta",
    "site-transient",
    "site-options",
    "site-lookup",
    "blog-lookup",
    "blog-details",
    "rss",
    "global-posts"
    ]
    WP_REDIS_IGNORED_GROUPS: [
    "counts",
    "plugins"
    ]
    Global Groups: [
    "users",
    "userlogins",
    "usermeta",
    "user_meta",
    "site-transient",
    "site-options",
    "site-lookup",
    "blog-lookup",
    "blog-details",
    "rss",
    "global-posts",
    "redis-cache",
    "useremail",
    "userslugs",
    "site-details",
    "blog-id-cache",
    "networks",
    "sites",
    "blog_meta"
    ]
    Ignored Groups: [
    "counts",
    "plugins",
    "themes"
    ]
    Unflushable Groups: []
    Groups Types: {
    "users": "global",
    "userlogins": "global",
    "usermeta": "global",
    "user_meta": "global",
    "site-transient": "global",
    "site-options": "global",
    "site-lookup": "global",
    "blog-lookup": "global",
    "blog-details": "global",
    "rss": "global",
    "global-posts": "global",
    "redis-cache": "global",
    "counts": "ignored",
    "plugins": "ignored",
    "useremail": "global",
    "userslugs": "global",
    "site-details": "global",
    "blog-id-cache": "global",
    "networks": "global",
    "sites": "global",
    "blog_meta": "global",
    "themes": "ignored"
    }
    Drop-ins: [
    "Redis Object Cache Drop-In v2.2.3 by Till Krüss"
    ]
    Plugin Author Till Krüss

    (@tillkruess)

    If it’s still happening after disabling all plugins, then you didn’t flush the cache (Redis Server). Make sure you do that directly on Redis Server.

    Thread Starter futureyoon

    (@futureyoon)

    I tried all that you recommended.

    but the issue still persists. Any other idea?

    Pleaes help

    Plugin Author Till Krüss

    (@tillkruess)

    If you still get redirects, then it’s a 3rd party plugin or theme that’s not playing nice with object caching.

    WordPress core and Redis Object Cache are 100% compatible.

    Thread Starter futureyoon

    (@futureyoon)

    I have turned off all the plugins and switched the theme to twenty twenty one.

    and this site is just a brand new created from aws bitnami.

    Anyway…

    is there any way to bypass the redirect process from Redis?

    this particular aciton in gamipress is doing the redirect as part of process. so I hope to configure Redis to ignore this redirect process. Please advise.

    Plugin Author Till Krüss

    (@tillkruess)

    The Redis Object Cache plugin doesn’t do any redirects.

    Take a look at: https://developer.wordpress.org/reference/functions/wp_redirect/

    What does the X-Redirect-By header say for your redirects?

    Thread Starter futureyoon

    (@futureyoon)

    i didnt mean Redis is doing the redirect.

    Gamipress is doing the redirect. but when Redis is on, the redirect function in gamipress seems breaking. Take a look

    For your question

    X-Redirect-By: WordPress

    I just hope to find out how to opt out this gamipress process from Redis.

    Can you advise me on that? Thank you

    Plugin Author Till Krüss

    (@tillkruess)

    In that case Gamipress needs to fix their plugin to work with persistent object caches like Redis or Memcached.

    Hi @tillkruess

    This redirect is working fine with memcached enabled.

    The strange behavior here is that with Redis enabled only this redirect fails, but redirects from others of our add-ons work perfectly so seems that Redis is only causing this conflict with this specific action.

    Does Redis include options to exclude URLs?

    Evidently something happens here since only Redis is affecting this action and not others from our other plugins that have been codes in the same way (the unique difference is the action name).

    Plugin Author Till Krüss

    (@tillkruess)

    Does Redis include options to exclude URLs?

    No, that’s only a concept with page caching.

    Evidently something happens here since only Redis is affecting this action and not others from our other plugins that have been codes in the same way (the unique difference is the action name).

    Maybe, but I can’t tell you for sure or what it is. If you want to debug Gamipress, please let me know if you find anything.

    It’s up to Gamipress to make sure their plugin works with caches 👍

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

The topic ‘too many redirect’ is closed to new replies.