[wp-trac] [WordPress Trac] #40063: Handle site cache invalidation more specifically for option updates

WordPress Trac noreply at wordpress.org
Sun Mar 19 16:21:41 UTC 2017


#40063: Handle site cache invalidation more specifically for option updates
---------------------------------------------+------------------------
 Reporter:  flixos90                         |       Owner:  flixos90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7.4
Component:  Networks and Sites               |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  multisite
---------------------------------------------+------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40305"]:
 {{{
 #!CommitTicketReference repository="" revision="40305"
 Multisite: Handle sites cache invalidation more granularly for option
 updates.

 Previously `update_blog_option()` would trigger an invalidation of that
 site's entire cache although these changes did not affect the content of
 these caches. Furthermore changes to the special options `blogname`,
 `siteurl` and `post_count` should not invalidate the entire cache of that
 site, but only their respective site details cache. The option `home` now
 has the same behavior as it also belongs to the site details, but did not
 invalidate the cache at all previously.

 Several new unit tests confirm these changes work as expected.

 Fixes #40063.
 }}}

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


More information about the wp-trac mailing list