[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 02:14:22 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
-------------------------------------+-------------------------------------
Changes (by nacin):
* status: closed => reopened
* resolution: fixed =>
Comment:
This seems unnecessarily slow and complicated. Would it be better to have
this?
{{{
add_action( 'update_option_blogname',
'_wp_refresh_blog_details_on_updated_option' );
add_action( 'update_option_siteurl',
'_wp_refresh_blog_details_on_updated_option' );
add_action( 'update_option_post_count',
'_wp_refresh_blog_details_on_updated_option' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26410#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list