mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Move Cache::get() to DI::cache()->get()
This commit is contained in:
parent
f68929633b
commit
fe078410a1
16 changed files with 20 additions and 33 deletions
|
@ -57,7 +57,7 @@ class Term
|
|||
*/
|
||||
public static function getGlobalTrendingHashtags(int $period, $limit = 10)
|
||||
{
|
||||
$tags = Cache::get('global_trending_tags');
|
||||
$tags = DI::cache()->get('global_trending_tags');
|
||||
|
||||
if (!$tags) {
|
||||
$tagsStmt = DBA::p("SELECT t.`term`, COUNT(*) AS `score`
|
||||
|
@ -100,7 +100,7 @@ class Term
|
|||
*/
|
||||
public static function getLocalTrendingHashtags(int $period, $limit = 10)
|
||||
{
|
||||
$tags = Cache::get('local_trending_tags');
|
||||
$tags = DI::cache()->get('local_trending_tags');
|
||||
|
||||
if (!$tags) {
|
||||
$tagsStmt = DBA::p("SELECT t.`term`, COUNT(*) AS `score`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue