Opened 10 years ago
Closed 8 years ago
#6320 closed defect (bug) (no action required)
pending_email_change user-meta touches cached user data
Reported by: | johnjamesjacoby | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Settings | Keywords: | reporter-feedback |
Cc: | boonebgorges |
Description
In #2265, the decision was made to switch away from WordPress MU's approach of storing pending user email changes (storing them as options) and to store them in usermeta instead.
One side-effect of this (now that we are caching more things) is that a pending email change busts the cached user object once on change, then again when they confirm their address or cancel the change.
I'm unsure if this is better or worse, but I have a hunch there are improvements we can (and maybe should) try to make to this.
Some thoughts:
- Transients?
- Should we include a timestamp in our array? IP address? Session data?
- Should these have a 24 hour limit on them? 12? 1?
- Should there be an option to resend the email?
What's the actual bug here? Busting the cache twice just means a minor performance hit, right? Or does this cause actual issues in some cases?