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

WordPress Trac noreply at wordpress.org
Sun Jun 19 11:57:49 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 spacedmonkey):

 35791-cachefound-2.diff is a massive refactor of the found sites code. It
 adds a new private method called set_found_sites, which brings it into
 line with the WP_Query class. The other big change is that the found_sites
 and max_num_pages variables are also saved in the same cache as the site
 ids. This means that only the query variables are stored in one cache.
 This will save multi calls to cache.

 If no_found_rows is true, the cache will save a 0 value, this seems a
 little pointless, but it does make the cache consistent.

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


More information about the wp-trac mailing list