[wp-trac] [WordPress Trac] #35791: WP_Site_Query class

WordPress Trac noreply at wordpress.org
Sun Jun 26 12:45:31 UTC 2016


#35791: WP_Site_Query class
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  jeremyfelt
     Type:  task (blessed)                       |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.6
Component:  Networks and Sites                   |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  multisite
  tests needs-dev-note                           |
-------------------------------------------------+-------------------------

Comment (by jeremyfelt):

 In [changeset:"37868"]:
 {{{
 #!CommitTicketReference repository="" revision="37868"
 Multisite: Cache `found_sites` and `max_num_pages` in `WP_Site_Query`.

 This avoids a second uncached query used to determine found rows. Instead,
 we can cache the number of found sites and the max number of pages for
 reuse when the same query is requested in the future.

 Props spacedmonkey.
 See #35791.
 }}}

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


More information about the wp-trac mailing list