[wp-trac] [WordPress Trac] #61730: `delete_network_option` sets network `notoptions` cache on non-multisites, but `add_network_option` and `update_network_option` do not clear it

WordPress Trac noreply at wordpress.org
Thu Jul 25 23:03:02 UTC 2024


#61730: `delete_network_option` sets network `notoptions` cache on non-multisites,
but `add_network_option` and `update_network_option` do not clear it
--------------------------------------+----------------------------
 Reporter:  bjorsch                   |       Owner:  peterwilsoncc
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.7
Component:  Options, Meta APIs        |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58811" 58811]:
 {{{
 #!CommitTicketReference repository="" revision="58811"
 Options, Meta APIs: Prevent Single Site installs using network notoptions
 cache.

 Modifies the caching of `notoptions` in `delete_network_option()` to
 ensure that the network cache is bypassed on single site installs.

 On single site installs the incorrect caching was causing the `notoptions`
 cache to remain populated once a deleted option was subsequently added or
 updated.

 Follow up to [58782].

 Props bjorsch, pbearne.
 Fixes #61730.
 See #61484.
 }}}

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


More information about the wp-trac mailing list