diff options
-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 ); } /*=======================================================================*\ |