[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
Tue Jan 11 03:37:47 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 SergeyBiryukov):

 Replying to [comment:3 pbiron]:
 > 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?

 Yes, that is correct.

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


More information about the wp-trac mailing list