[wp-trac] [WordPress Trac] #57963: Fix add method in test suite object-cache.php
WordPress Trac
noreply at wordpress.org
Tue Mar 21 17:00:36 UTC 2023
#57963: Fix add method in test suite object-cache.php
--------------------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Build/Test Tools | Version: 4.8
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------------
Changes (by spacedmonkey):
* owner: (none) => spacedmonkey
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55577" 55577]:
{{{
#!CommitTicketReference repository="" revision="55577"
Build/Test Tools: Fix issue with add method in object-cache.php.
In the object-cache.php file used for unit tests, the add method did not
work as expected. Other object cache plugins and core, have a check to see
if the key exists in memory before writing it. Without this check, it used
to write unnecessarily to the cache.
Props spacedmonkey, SergeyBiryukov.
Fixes #57963.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57963#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list