WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#54316 new defect (bug)

clean_user_cache() doesn't clear the user_meta cache

Reported by: dd32 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Users Keywords: needs-unit-tests has-patch
Focuses: Cc:

Description

Calling clean_user_cache() doesn't clear the user_meta cache, which can cause odd behaviours when the reason for calling it is that the user or usermeta DB tables have been altered.

Additionally, there is no API for clearing the metadata caches, other than performing a direct wp_cache_delete( $id, 'user_meta' );.

See attached PR.

Change History (1)

This ticket was mentioned in PR #1776 on WordPress/wordpress-develop by dd32.


3 months ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.