[wp-trac] [WordPress Trac] #54771: possible disagreement in the return types/values wp_cache_flush() and WP_Object_Cache:flush().
WordPress Trac
noreply at wordpress.org
Mon Jan 10 15:13:07 UTC 2022
#54771: possible disagreement in the return types/values wp_cache_flush() and
WP_Object_Cache:flush().
--------------------------+------------------------------
Reporter: pbiron | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Cache API | Version:
Severity: normal | Resolution:
Keywords: | Focuses: docs
--------------------------+------------------------------
Comment (by pbiron):
@SergeyBiryukov
And the way `wp_cache_flush()`'s return value could be different from
`WP_Object_Cache::flush()` is a caching plugin replaces the
`$wp_object_cache` global variable with an instance of their own, which
could possibly return something different? Is that correct?
I'll think about how the DocBlock could be change to make that more clear.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54771#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list