Opened 16 years ago
Closed 16 years ago
#15559 closed defect (bug) (fixed)
Deprecated update_usermeta() and delete_usermeta() do not invalidate the correct caches
| Reported by: | mdawaffe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Cache API | Version: | 3.1 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
(In [16562]) Correct cache invalidation in update_usermeta() and delete_usermeta(). Props mdawaffe. Fixes #15559