[wp-trac] [WordPress Trac] #61467: Inconsistent cache handling for network (site) meta
WordPress Trac
noreply at wordpress.org
Thu Jun 20 11:37:41 UTC 2024
#61467: Inconsistent cache handling for network (site) meta
-------------------------------------------+-------------------------------
Reporter: xParham | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version:
Severity: major | Resolution:
Keywords: has-testing-info dev-feedback | Focuses: multisite,
| performance
-------------------------------------------+-------------------------------
Comment (by xParham):
@narenin Thanks for confirming this. I understand the workaround you have
suggested, but I believe this should be fixed at the core level. The core
should pick one method for working with `wp_sitemeta` and stick to it
everywhere.
Perhaps in `update_metadata()` it can check if `$meta_type === 'site'` and
then just bail early with a `return update_network_option( $object_id,
$meta_key, $meta_value );`, and similarly in other `*_metadata()`
functions. Or the other way, change `update_network_option()` to let
`update_metadata()` handle the update.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61467#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list