[wp-trac] [WordPress Trac] #31792: register_uninstall_hook() causes large amounts of unnecessary option updates (was: register_uninstall_hook() causes large amounts of unnecessary updates to wp_options)
WordPress Trac
noreply at wordpress.org
Fri Apr 5 12:03:01 UTC 2019
#31792: register_uninstall_hook() causes large amounts of unnecessary option
updates
-------------------------------------------------+-------------------------
Reporter: jeichorn | Owner: jorbin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting
| Review
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing bulk- | Focuses:
reopened | performance
-------------------------------------------------+-------------------------
Comment (by tha_sun):
The patch retains the currently existing API behavior as-is, so it is
fully backwards-compatible.
It only prevents the function from re-saving the option with the identical
value that it had before already.
Doing so prevents the option cache from being rewritten on every request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31792#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list