[wp-trac] [WordPress Trac] #42252: Use more granular caching for common queries in `WP_Site_Query`

WordPress Trac noreply at wordpress.org
Wed Dec 6 17:15:47 UTC 2017


#42252: Use more granular caching for common queries in `WP_Site_Query`
----------------------------------------+------------------------
 Reporter:  flixos90                    |       Owner:  flixos90
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  5.0
Component:  Networks and Sites          |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  multisite
----------------------------------------+------------------------

Comment (by flixos90):

 [attachment:42252.7.diff] applies cleanly against trunk after the coding
 standards commit, and also fixes a bug in `WP_Site_Query::get_cache_key()`
 where a temporary loop variable would accidentally override another
 variable used later on, previously causing two tests to fail.

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


More information about the wp-trac mailing list