WordPress.org

Make WordPress Core

Timestamp:
03/19/2017 04:21:38 PM (4 years ago)
Author:
flixos90
Message:

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.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.