Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#55462 closed enhancement (fixed)

Improve cache key generation in WP_Site_Query

Reported by: spacedmonkey Owned by: spacedmonkey
Priority: normal Milestone: 6.0
Component: Networks and Sites Version: 4.6
Severity: normal Keywords: good-first-bug has-patch has-unit-tests commit
Cc: Focuses: multisite, performance

Description

Follow on from #55352.

Improve cache key generation in WP_Site_Query to improve likely that cache is reused. Unsetting update_site_cache and update_site_meta_cache, would improve cache keys, as this fields do not affect the cache.

Change History (8)

This ticket was mentioned in PR #2485 on WordPress/wordpress-develop by manuelRod.


4 years ago
#2

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

Improve cache generation unsetting update_site_cache and update_site_meta_cache

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

#3 @furi3r
4 years ago

@spacedmonkey PR ready.

This ticket was mentioned in Slack in #core-multisite by spacedmonkey. View the logs.


4 years ago

#5 @spacedmonkey
4 years ago

  • Milestone Awaiting Review6.0
  • Owner set to spacedmonkey
  • Status newassigned

#6 @johnbillion
4 years ago

  • Keywords commit added

#7 @spacedmonkey
4 years ago

  • Resolutionfixed
  • Status assignedclosed

In 53097:

Networks and Sites: Improve cache key generation in WP_Site_Query class.

Improve cache key generation in the WP_Site_Query class by removing update_site_cache and update_site_meta_cache elements in the array used to generate
the cache key. These elements do not affect that cache and by removing them, improve the likelihood of reusing an existing cache.

Props Spacedmonkey, furi3r, johnbillion, johnjamesjacoby, flixos90.
Fixes #55462.

spacedmonkey commented on PR #2485:


4 years ago
#8

Committed.

Note: See TracTickets for help on using tickets.