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!
- The topic ‘Exclude manual password changes?’ is closed to new replies.