[wp-trac] [WordPress Trac] #15559: Deprecated update_usermeta() and delete_usermeta() do not invalidate the correct caches
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 24 05:35:55 UTC 2010
#15559: Deprecated update_usermeta() and delete_usermeta() do not invalidate the
correct caches
--------------------------+-------------------------------------------------
Reporter: mdawaffe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Cache | Version: 3.1
Severity: major | Keywords: has-patch
--------------------------+-------------------------------------------------
{{{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'
);}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15559>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list