diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-10-24 15:39:15 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-10-24 15:39:15 +0000 |
commit | 7e007d8024faecc4d9a7f607dcba42a4cfa7bb5d (patch) | |
tree | 763f1ae9c0ea8213d51c4c9b22c18a80ab1b11cc /wp-includes/rss.php | |
parent | 1036004ea5ea7e2d477899e8f114661602687af6 (diff) | |
download | wordpress-mu-7e007d8024faecc4d9a7f607dcba42a4cfa7bb5d.tar.gz wordpress-mu-7e007d8024faecc4d9a7f607dcba42a4cfa7bb5d.tar.xz wordpress-mu-7e007d8024faecc4d9a7f607dcba42a4cfa7bb5d.zip |
And remove object cache calls from get() too
git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1511 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/rss.php')
-rw-r--r-- | wp-includes/rss.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/wp-includes/rss.php b/wp-includes/rss.php index ff93504..5b3741c 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -690,23 +690,14 @@ class RSSCache { Output: cached object on HIT, false on MISS \*=======================================================================*/ function get ($url) { - global $wp_object_cache; $this->ERROR = ""; $cache_option = 'rss_' . $this->file_name( $url ); - if( $wp_object_cache->cache_enabled ) { - if( ! wp_cache_get( $cache_option, 'rss' ) ) { - $this->debug( "Cache doesn't contain: $url (cache option: $cache_option)" ); - return 0; - } - return wp_cache_get( $cache_option, 'rss' ); - } else { - if ( ! get_site_option( $cache_option ) ) { - $this->debug( "Cache doesn't contain: $url (cache option: $cache_option)" ); - return 0; - } - return get_site_option( $cache_option ); + if ( ! get_site_option( $cache_option ) ) { + $this->debug( "Cache doesn't contain: $url (cache option: $cache_option)" ); + return 0; } + return get_site_option( $cache_option ); } /*=======================================================================*\ |