[wp-trac] [WordPress Trac] #9048: Don't cache to options table if object cache installed

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 5 00:17:30 GMT 2009


#9048: Don't cache to options table if object cache installed
-------------------------+--------------------------------------------------
 Reporter:  ryan         |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.8      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 RSS feeds, rewrite rules, and other things that should be in a cache are
 actually stored in the options table since the default cache does not
 persist data beyond the current page load.  For blogs where an object
 cache backend that persists across page loads is installed, we should move
 these "options" out of the options table and into the cache.

 My suggestion is to add a set of *_transient() functions that are used
 instead of *_option() for transient data that really belongs in the cache.
 An alternative is to have the *_option() functions check a list of options
 that should be transient and send transients to the cache instead of the
 options table.  Plugins could add to the list.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/9048>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list