summaryrefslogtreecommitdiffstats
path: root/wp-includes/rss.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-06-13 17:21:00 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-06-13 17:21:00 +0000
commit12de05107e4c8b006bde6ee8916f34eb476d08da (patch)
tree123ee54ecd1f3f777373b7df54a4604012d43640 /wp-includes/rss.php
parente51c7a9ca4bfdb45fa3ec7334bd33871e78c68b1 (diff)
downloadwordpress-mu-12de05107e4c8b006bde6ee8916f34eb476d08da.tar.gz
wordpress-mu-12de05107e4c8b006bde6ee8916f34eb476d08da.tar.xz
wordpress-mu-12de05107e4c8b006bde6ee8916f34eb476d08da.zip
WP Merge with revision 8075
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1328 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/rss.php')
-rw-r--r--wp-includes/rss.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/wp-includes/rss.php b/wp-includes/rss.php
index f655f12..561e3f9 100644
--- a/wp-includes/rss.php
+++ b/wp-includes/rss.php
@@ -651,11 +651,12 @@ function is_server_error ($sc) {
}
class RSSCache {
- var $BASE_CACHE = 'wp-content/cache'; // where the cache files are stored
+ var $BASE_CACHE; // where the cache files are stored
var $MAX_AGE = 43200; // when are files stale, default twelve hours
var $ERROR = ''; // accumulate error messages
function RSSCache ($base='', $age='') {
+ $this->BASE_CACHE = WP_CONTENT_DIR . '/cache';
if ( $base ) {
$this->BASE_CACHE = $base;
}
@@ -677,8 +678,8 @@ class RSSCache {
$cache_timestamp = 'rss_' . $this->file_name( $url ) . '_ts';
if( $wp_object_cache->cache_enabled ) {
- wp_cache_set( $cache_option, $rss, 'site-options' );
- wp_cache_set( $cache_timestamp, $cache_timestamp, 'site-options' );
+ 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 );
@@ -701,17 +702,17 @@ class RSSCache {
$cache_option = 'rss_' . $this->file_name( $url );
if( $wp_object_cache->cache_enabled ) {
- if( ! wp_cache_get( $cache_option, 'site-options' ) ) {
+ 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, 'site-options' );
+ return wp_cache_get( $cache_option, 'rss' );
} else {
- if ( ! get_option( $cache_option ) ) {
+ if ( ! get_site_option( $cache_option ) ) {
$this->debug( "Cache doesn't contain: $url (cache option: $cache_option)" );
return 0;
}
- return get_option( $cache_option );
+ return get_site_option( $cache_option );
}
}
@@ -729,9 +730,9 @@ class RSSCache {
$cache_timestamp = 'rss_' . $this->file_name( $url ) . '_ts';
if( $wp_object_cache->cache_enabled ) {
- $mtime = wp_cache_get( $cache_timestamp, 'site-options' );
+ $mtime = wp_cache_get( $cache_timestamp, 'rss' );
} else {
- $mtime = get_option($cache_timestamp);
+ $mtime = get_site_option($cache_timestamp);
}
if ( $mtime ) {