[wp-trac] [WordPress Trac] #37392: Multisite "Sites" screen: Add links to filter websites by status

WordPress Trac noreply at wordpress.org
Wed Jun 5 18:35:29 UTC 2019


#37392: Multisite "Sites" screen: Add links to filter websites by status
-------------------------------------------------+-------------------------
 Reporter:  thomaswm                             |       Owner:  mnelson4
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.3
Component:  Networks and Sites                   |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests needs-patch needs-  |     Focuses:  multisite
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by pbiron):

 I've given
 [[https://core.trac.wordpress.org/attachment/ticket/37392/37392.diff|37392.diff]]
 some testing.

 It works like a charm!

 I am **definitely NOT** your go-to guy on efficiency issues, but I will
 note that the version of `wp_count_sites()` is **an order of magnitude
 SLOWER** than that in 37392.8.patch...on a real-world network with ~2000
 sites

 * 37392.diff is averaging **0.03 seconds**
 * 37392.8.patch is averaging **0.002 seconds**

 Note: The above timings are on my local dev machine, which has a **slow**
 hard drive.

 I can't comment on how important the //cache invalidation// that
 `WP_Site_Query()` provides would be in real-world applications.

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


More information about the wp-trac mailing list