Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#11761 closed defect (bug) (fixed)

Create a clean_user_cache() function / fix refresh_user_details()

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by: ryan's profile ryan
Milestone: 3.0 Priority: normal
Severity: major Version: 3.0
Component: Cache API Keywords:
Focuses: multisite Cc:

Description

refresh_user_details() potentially leaves garbage in the cache, in that it merely deletes two buckets:

  • users
  • userlogins

wp_delete_user(), by contrast, additionally deletes:

  • useremail
  • userslugs

There are several other occurrences where the same applies, in WP. We should refactor the area of WP a little and introduce some kind of clean_user_cache() function.

Change History (2)

#1 @nacin
15 years ago

  • Keywords multisite added

#2 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12766]) Introduce clean_user_cache(). fixes #11761

Note: See TracTickets for help on using tickets.