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

WordPress Trac noreply at wordpress.org
Wed Mar 11 20:56:39 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:  2nd-opinion   |     Focuses:
--------------------------+-----------------------------

Comment (by jipmoors):

 Using filters it not going to work. The only problem is wp_cache_get which
 needs to be able to return a 'null' when the cache contains this value for
 a key.

 A method that allows you to registers a cache handler with a priority
 would be a solution.
 The public functions will work through the registered handlers until the
 request is completed.
 The handlers should extend the WP_CacheHandler abstract class to ensure
 minimal function compliance.

 I think this is a concept that has a lot of potential and will see if I
 can make an elegant implementation.

 Please forget/ignore/remove my previous patches.

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


More information about the wp-trac mailing list