mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 10:04:26 +02:00
Issue 9344: Update trending tags hourly
This commit is contained in:
parent
78121afcb0
commit
d94e653030
2 changed files with 6 additions and 6 deletions
|
@ -526,7 +526,7 @@ class Tag
|
|||
|
||||
if (DBA::isResult($tagsStmt)) {
|
||||
$tags = DBA::toArray($tagsStmt);
|
||||
DI::cache()->set('global_trending_tags-' . $period . '-' . $limit, $tags, Duration::HOUR);
|
||||
DI::cache()->set('global_trending_tags-' . $period . '-' . $limit, $tags, Duration::DAY);
|
||||
return $tags;
|
||||
}
|
||||
|
||||
|
@ -569,7 +569,7 @@ class Tag
|
|||
|
||||
if (DBA::isResult($tagsStmt)) {
|
||||
$tags = DBA::toArray($tagsStmt);
|
||||
DI::cache()->set('local_trending_tags-' . $period . '-' . $limit, $tags, Duration::HOUR);
|
||||
DI::cache()->set('local_trending_tags-' . $period . '-' . $limit, $tags, Duration::DAY);
|
||||
return $tags;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue