Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#15559 closed defect (bug) (fixed)

Deprecated update_usermeta() and delete_usermeta() do not invalidate the correct caches

Reported by: mdawaffe's profile mdawaffe Owned by:
Milestone: 3.1 Priority: normal
Severity: major Version: 3.1
Component: Cache API Keywords: has-patch
Focuses: Cc:

Description

update_usermeta() and delete_usermeta() are deprecated, but do not invalidate the user's user_meta cache.

This can cause cache and even DB poisoning depending on how plugins using these functions work.

Attached uses the same cache invalidation that the new update_user_meta() and delete_user_meta() use:

clean_user_cache( $user_id ); wp_cache_delete( $user_id, 'user_meta' );

Attachments (1)

15559.diff (814 bytes) - added by mdawaffe 14 years ago.

Download all attachments as: .zip

Change History (2)

@mdawaffe
14 years ago

#1 @scribu
14 years ago

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

(In [16562]) Correct cache invalidation in update_usermeta() and delete_usermeta(). Props mdawaffe. Fixes #15559

Note: See TracTickets for help on using tickets.