Moved cache directory for flickr and youtube stuff

This commit is contained in:
moodler
2007-08-24 03:44:31 +00:00
parent 1acd661d07
commit 3a59bfd1e0
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -116,8 +116,10 @@ class block_tag_flickr extends block_base {
function fetch_request($request){
global $CFG;
make_upload_directory('/cache/flickr');
$cache = new RSSCache($CFG->dataroot . '/cache', FLICKR_CACHE_EXPIRATION);
$cache = new RSSCache($CFG->dataroot . '/cache/flickr', FLICKR_CACHE_EXPIRATION);
$cache_status = $cache->check_cache( $request);
if ( $cache_status == 'HIT' ) {
+3 -1
View File
@@ -123,7 +123,9 @@ class block_tag_youtube extends block_base {
global $CFG;
$cache = new RSSCache($CFG->dataroot . '/cache',YOUTUBE_CACHE_EXPIRATION);
make_upload_directory('/cache/youtube');
$cache = new RSSCache($CFG->dataroot . '/cache/youtube',YOUTUBE_CACHE_EXPIRATION);
$cache_status = $cache->check_cache( $request);
if ( $cache_status == 'HIT' ) {