[wp-trac] [WordPress Trac] #54316: clean_user_cache() doesn't clear the user_meta cache
WordPress Trac
noreply at wordpress.org
Tue Dec 6 13:52:18 UTC 2022
#54316: clean_user_cache() doesn't clear the user_meta cache
---------------------------------------------+---------------------------
Reporter: dd32 | Owner: spacedmonkey
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Users | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+---------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"54940" 54940]:
{{{
#!CommitTicketReference repository="" revision="54940"
Users: Clear the user_meta cache when `clean_user_cache` function is
called.
Unlike other clean cache functions like `clean_post_cache`,
`clean_user_cache` did not also clear user meta caches. This is
inconsistent and can result in some strange side effects. Update the
`clean_user_cache` function to also clear user meta caches when called.
Props dd32, spacedmonkey, peterwilsoncc.
Fixes #54316.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54316#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list