Return cached item for homepage stats
MAILPOET-5439
This commit is contained in:
committed by
Aschepikov
parent
52dba60b7b
commit
8bf3eddf09
@@ -92,7 +92,7 @@ class SubscribersCountsController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getHomepageStatistics(): array {
|
public function getHomepageStatistics(): array {
|
||||||
$result = $this->getCacheItem(TransientCache::SUBSCRIBERS_HOMEPAGE_STATISTICS_COUNT_KEY, 0) ?? [];
|
$result = $this->getCacheItem(TransientCache::SUBSCRIBERS_HOMEPAGE_STATISTICS_COUNT_KEY, 0)['item'] ?? [];
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$result = $this->recalculateHomepageStatisticsCache();
|
$result = $this->recalculateHomepageStatisticsCache();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user