[wp-trac] [WordPress Trac] #40362: Remove `blog-id-cache` cache group

WordPress Trac noreply at wordpress.org
Tue Apr 4 21:56:13 UTC 2017


#40362: Remove `blog-id-cache` cache group
--------------------------------+----------------------------------------
 Reporter:  flixos90            |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:  needs-patch good-first-bug
  Focuses:  multisite           |
--------------------------------+----------------------------------------
 The function `get_blog_id_from_url()` is the only function that uses the
 old `blog-id-cache` group. Since the introduction of `WP_Site_Query` it's
 basically redundant in there though, since site query results are cached
 anyway.

 Therefore I think we should remove the cache read and write actions in
 that function. We can then also remove the cache group completely (from
 `clean_blog_cache()` and registration as a "global group").

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40362>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list