From 1036004ea5ea7e2d477899e8f114661602687af6 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 24 Oct 2008 15:37:25 +0000 Subject: Remove object_cache checks, doesn't work for everyone, fixes #778, props chrisscott git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1510 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/rss.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'wp-includes') diff --git a/wp-includes/rss.php b/wp-includes/rss.php index 561e3f9..ff93504 100644 --- a/wp-includes/rss.php +++ b/wp-includes/rss.php @@ -673,19 +673,12 @@ class RSSCache { Output: true on sucess \*=======================================================================*/ function set ($url, $rss) { - global $wpdb, $wp_object_cache; + global $wpdb; $cache_option = 'rss_' . $this->file_name( $url ); $cache_timestamp = 'rss_' . $this->file_name( $url ) . '_ts'; - if( $wp_object_cache->cache_enabled ) { - wp_cache_set( $cache_option, $rss, 'rss' ); - wp_cache_set( $cache_timestamp, $cache_timestamp, 'rss' ); - } else { - if( !get_site_option( $cache_option ) ) - add_site_option( $cache_option, $rss ); - if( !get_site_option( $cache_timestamp ) ) - add_site_option( $cache_timestamp, $cache_timestamp ); - } + add_site_option( $cache_option, $rss ); + add_site_option( $cache_timestamp, $cache_timestamp ); return $cache_option; } -- cgit