[wp-trac] [WordPress Trac] #61467: Inconsistent cache handling for network (site) meta

WordPress Trac noreply at wordpress.org
Tue Jan 21 23:42:01 UTC 2025


#61467: Inconsistent cache handling for network (site) meta
-------------------------------------------------+-------------------------
 Reporter:  xParham                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Cache API                            |     Version:  3.0
 Severity:  major                                |  Resolution:
 Keywords:  has-testing-info dev-feedback has-   |     Focuses:  multisite,
  patch                                          |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 I have created with a fix for this issue [https://github.com/WordPress
 /wordpress-develop/pull/8161 #8161].

 This hook into the `get_site_metadata`, `update_site_metadata`,
 `add_site_metadata` and `delete_site_metadata` filters. These filters load
 early in there functions and will bypass loading via the metadata api and
 defaults to the network option. They also add a doing it wrong function
 call, to tell developers that they are doing something not recommended.

 Can @peterwilsoncc @xParham take a look at the PR and see if you are happy
 with the approach, if you are happy, I can add unit tests and get this
 committed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61467#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list