summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-10-24 15:37:25 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-10-24 15:37:25 +0000
commit1036004ea5ea7e2d477899e8f114661602687af6 (patch)
tree2ce699e1c382e45b803b2b0a6b3d67b26afa39a8 /wp-includes
parentba7f10bd97e016a1c9048348bc3ac2d3225ebdbe (diff)
downloadwordpress-mu-1036004ea5ea7e2d477899e8f114661602687af6.tar.gz
wordpress-mu-1036004ea5ea7e2d477899e8f114661602687af6.tar.xz
wordpress-mu-1036004ea5ea7e2d477899e8f114661602687af6.zip
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
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/rss.php13
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;
}