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

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

 Added a fix for an issue that @ocean90 spotted. Basically if the site
 query is coming from cache the 'SELECT FOUND_ROWS()' query still runs. In
 35791-cachefound.diff I have written a patch, where the result of the
 found rows query is not run.

 Caching this result is similar to [https://github.com/Automattic/advanced-
 post-cache/blob/master/advanced-post-cache.php#L115 advanced-post-cache]
 plugin saves running the found rows query.

 Looping @jeremyfelt as this should be fixed before 4.6.

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


More information about the wp-trac mailing list