[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
Sun Jan 9 20:39:50 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 costdev):

 The Docblock for `wp_cache_flush()` was changed to its current form as
 part of general Docblock improvements for 5.4 - #48303.

 Prior to this, the Docblock was changed from "Always returns true" to
 "False on failure, true on success" in
 [https://core.trac.wordpress.org/changeset/23328 23328].

 See @SergeyBiryukov's
 [https://core.trac.wordpress.org/ticket/23058#comment:4 comment on
 #23058].

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


More information about the wp-trac mailing list