[wp-trac] [WordPress Trac] #22661: Allow object caches to degrade gracefully

WordPress Trac noreply at wordpress.org
Thu Jan 22 21:02:28 UTC 2015


#22661: Allow object caches to degrade gracefully
-----------------------------------+-----------------------------
 Reporter:  markjaquith            |       Owner:
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  Future Release
Component:  Cache API              |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+-----------------------------
Changes (by jipmoors):

 * keywords:  has-patch => has-patch 2nd-opinion


Comment:

 A solution would be to generate a random (unused) key, set it and retrieve
 it to see if the cache is actually active before setting the
 wp_using_ext_object_cache blindly to enabled.


 As a counter argument I realise that you do create overhead, but cache
 should be fast and lean in it's nature.


 I guess the problem with an external cache provider that is not working,
 is that the functions would be defined in the implementation of that
 external cache. Which means that all cache should be disabled and we can't
 revert to core cache.php.

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


More information about the wp-trac mailing list