Support » Plugin: WP Redis » disable cache for logged in users

  • Resolved sheenas

    (@sheenas)


    Hi

    Please let me know how to disable redis cache when logged into wordpress. So basically, I dont want redis cache operating when I am logged on to wordpress as admin. This is because sometimes I have to flush the cache out to see the changes. I want to stop flushing cache each time I make a change on the db.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hi @sheenas:

    Please let me know how to disable redis cache when logged into wordpress. So basically, I dont want redis cache operating when I am logged on to wordpress as admin.

    This isn’t a feature supported by the plugin, unfortunately. While it may be technically possible to do, it would likely cause unexpected bugs.

    This is because sometimes I have to flush the cache out to see the changes. I want to stop flushing cache each time I make a change on the db.

    This shouldn’t be the case. Can you share more detail about the problem, and what you’ve done to debug?

    I basically do a serialized search and replace on the database directly to make bulk changes every day, and not via wordpress, and the changes are not seen until I flush the cache. I make around 10-15 changes each day over 8 hours so its gets tedious to do that each time. I know some cache plugins are disabled for logged in users i.e. wp rocket, w3tc etc

    May be there is way to bypass for the plugin not to work when logged in using htaccess or wp config?

    Thank you.

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    May be there is way to bypass for the plugin not to work when logged in using htaccess or wp config?

    Not in a way that we support, no.

    I basically do a serialized search and replace on the database directly to make bulk changes every day, and not via wordpress, and the changes are not seen until I flush the cache.

    You may look into refreshing the cache for each affected entry or (worst case scenario) flush the entire cache after the search / replace procedure occurs. Keep in mind the latter can have a negative performance impact on a high traffic site.

    Thanks Daniel. Awesome cache by the way.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘disable cache for logged in users’ is closed to new replies.