From 8bf3eddf091c40540edb200e9e49363c9e8c2cc9 Mon Sep 17 00:00:00 2001 From: John Oleksowicz Date: Wed, 28 Jun 2023 14:53:09 -0500 Subject: [PATCH] Return cached item for homepage stats MAILPOET-5439 --- mailpoet/lib/Subscribers/SubscribersCountsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailpoet/lib/Subscribers/SubscribersCountsController.php b/mailpoet/lib/Subscribers/SubscribersCountsController.php index dc92e873c5..1285b41af2 100644 --- a/mailpoet/lib/Subscribers/SubscribersCountsController.php +++ b/mailpoet/lib/Subscribers/SubscribersCountsController.php @@ -92,7 +92,7 @@ class SubscribersCountsController { } 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) { $result = $this->recalculateHomepageStatisticsCache(); }