[wp-trac] [WordPress Trac] #33276: redundant wp_using_ext_object_cache check in get/set_transient

WordPress Trac noreply at wordpress.org
Mon Aug 15 00:12:48 UTC 2016


#33276: redundant wp_using_ext_object_cache check in get/set_transient
--------------------------+------------------------------
 Reporter:  shmulikk      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cache API     |     Version:  2.8
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:  performance
--------------------------+------------------------------

Comment (by dd32):

 The code is intentionally duplicated, as Transients are designed not to
 hit the database in the event that an object cache is in use (Whether that
 object cache is working correctly or not, is out of the hands of
 WordPress).

 A better way to approach this, I think, would be for for a object cache
 dropin to be able to notify WordPress that it's unhealthy and not working
 correctly, possibly by filtering `wp_using_ext_object_cache()` somehow.

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


More information about the wp-trac mailing list