Don't cache to options table if object cache installed
|Reported by:||ryan||Owned by:|
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.