[wp-trac] [WordPress Trac] #55462: Improve cache key generation in WP_Site_Query

WordPress Trac noreply at wordpress.org
Thu Apr 7 17:44:49 UTC 2022


#55462: Improve cache key generation in WP_Site_Query
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Networks and Sites                   |     Version:  4.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:  multisite,
  tests commit                                   |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53097" 53097]:
 {{{
 #!CommitTicketReference repository="" revision="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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55462#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list