Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#58175 new defect (bug)

Remove unused 'usermeta' global cache group

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by:
Milestone: 6.3 Priority: normal
Severity: normal Version:
Component: Cache API Keywords: good-first-bug has-patch has-unit-tests
Focuses: Cc:

Description

The usermeta cache group was introduced in [3011], but was never actually used in core.

The user_meta group is used instead, see [15482], [16562], and [54940].

To avoid confusion, I think the former should be removed from wp_cache_add_global_groups() calls in:

  • wp-includes/load.php
  • wp-includes/ms-blogs.php
  • tests/phpunit/includes/abstract-testcase.php

See [40347] / #38725 for a precedent of removing another unused cache group.

Change History (2)

This ticket was mentioned in PR #4366 on WordPress/wordpress-develop by @ignatggeorgiev.


6 weeks ago
#1

  • Keywords has-patch has-unit-tests added; needs-patch removed

Removing unused 'usermeta' global cache group, as it was never acutally used in core, instead the 'user_meta' group is used instead.

Trac ticket: https://core.trac.wordpress.org/ticket/58175

#2 @ignatggeorgiev
6 weeks ago

Added the patch above, should be taking care of the issue.

Note: See TracTickets for help on using tickets.