[wp-trac] [WordPress Trac] #26410: Updating or deleting options via update_option or delete_option leaves blog-details cache object stale
WordPress Trac
noreply at wordpress.org
Tue Sep 2 05:53:34 UTC 2014
#26410: Updating or deleting options via update_option or delete_option leaves
blog-details cache object stale
-------------------------------------+-------------------------------------
Reporter: codix | Owner: wonderboymusic
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Options, Meta APIs | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: multisite, performance
-------------------------------------+-------------------------------------
Comment (by pento):
attachment:26410.2.diff uses the specific action names to run the update
function.
This could be cut down even further if we added a `get_current_blog_id()`
call to `refresh_blog_details()`.
ie:
{{{
if ( empty( $blog_id ) ) {
$blog_id = get_current_blog_id();
}
}}}
But I'm not sure if that would have any unintended side effects.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26410#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list