Move Cache::set() to DI::cache()->set()
This commit is contained in:
+2
-2
@@ -569,7 +569,7 @@ class Photo
|
||||
DBA::escape(L10n::t("Contact Photos"))
|
||||
);
|
||||
}
|
||||
Cache::set($key, $albums, Cache::DAY);
|
||||
DI::cache()->set($key, $albums, Cache::DAY);
|
||||
}
|
||||
return $albums;
|
||||
}
|
||||
@@ -582,7 +582,7 @@ class Photo
|
||||
public static function clearAlbumCache($uid)
|
||||
{
|
||||
$key = "photo_albums:".$uid.":".local_user().":".remote_user();
|
||||
Cache::set($key, null, Cache::DAY);
|
||||
DI::cache()->set($key, null, Cache::DAY);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -608,7 +608,7 @@ class Profile
|
||||
);
|
||||
if (DBA::isResult($s)) {
|
||||
$r = DBA::toArray($s);
|
||||
Cache::set($cachekey, $r, Cache::HOUR);
|
||||
DI::cache()->set($cachekey, $r, Cache::HOUR);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1070,7 +1070,7 @@ class Profile
|
||||
Logger::log('URL ' . $my_url . ' already tried to authenticate.', Logger::DEBUG);
|
||||
return;
|
||||
} else {
|
||||
Cache::set($cachekey, true, Cache::MINUTE);
|
||||
DI::cache()->set($cachekey, true, Cache::MINUTE);
|
||||
}
|
||||
|
||||
Logger::log('Not authenticated. Invoking reverse magic-auth for ' . $my_url, Logger::DEBUG);
|
||||
|
||||
+2
-2
@@ -84,7 +84,7 @@ class Term
|
||||
|
||||
if (DBA::isResult($tagsStmt)) {
|
||||
$tags = DBA::toArray($tagsStmt);
|
||||
Cache::set('global_trending_tags', $tags, Cache::HOUR);
|
||||
DI::cache()->set('global_trending_tags', $tags, Cache::HOUR);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ class Term
|
||||
|
||||
if (DBA::isResult($tagsStmt)) {
|
||||
$tags = DBA::toArray($tagsStmt);
|
||||
Cache::set('local_trending_tags', $tags, Cache::HOUR);
|
||||
DI::cache()->set('local_trending_tags', $tags, Cache::HOUR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user