diff options
Diffstat (limited to 'wp-includes')
-rw-r--r-- | wp-includes/rss.php | 13 |
1 files changed, 3 insertions, 10 deletions
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; } |