Title: Exclude manual password changes?
Last modified: June 3, 2020

---

# Exclude manual password changes?

 *  Resolved [rzack](https://wordpress.org/support/users/rzack/)
 * (@rzack)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-manual-password-changes/)
 * One of our plugins is running a query manually that changes WP passwords in certain
   circumstances to a temporary password, and then quickly changes the password 
   back, within a few seconds. This weird setup is needed for a legacy authentication
   mechanism to function.
 * Unfortunately it looks like WP Redis is caching the password after the first 
   change, so the second password change isn’t recognized. This causes authentication
   failures since the first password is just a temporary password.
 * We’ve tried excluding the plugin in wp-config, but that didn’t work:
 * define( ‘WP_REDIS_IGNORED_GROUPS’, [‘counts’, ‘plugins’, ‘our-plugin’] );
 * It only works again when we disable object caching.
 * Is there any way to completely disable Redis caching of WP passwords and authentication
   stuff? Or is there any way to specify that a certain database query or WP function
   shouldn’t be cached by Redis?
 * Thanks!

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

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-manual-password-changes/#post-12933114)
 * Hi [@rzack](https://wordpress.org/support/users/rzack/),
 * You could try ignoring the group `users`, but personally I’d just do an automatic
   flush after that query runs, or even better delete the user’s cache keys after
   the plugin does its password changes.
 *  Thread Starter [rzack](https://wordpress.org/support/users/rzack/)
 * (@rzack)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-manual-password-changes/#post-12933146)
 * Ok thanks. I just tried adding this to wp-config but didn’t help, is this right?
 * define( ‘WP_REDIS_IGNORED_GROUPS’, [‘users’] );
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-manual-password-changes/#post-12933251)
 * That will ignore the users group, yes.
 *  Thread Starter [rzack](https://wordpress.org/support/users/rzack/)
 * (@rzack)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-manual-password-changes/#post-12933335)
 * Thanks! That is working. (Had a typo on first try of that). Case closed.

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

The topic ‘Exclude manual password changes?’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [rzack](https://wordpress.org/support/users/rzack/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-manual-password-changes/#post-12933335)
 * Status: resolved