From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks

---
 inc/managers/Referrals.php |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/inc/managers/Referrals.php b/inc/managers/Referrals.php
index 71769f7..3fc2f45 100644
--- a/inc/managers/Referrals.php
+++ b/inc/managers/Referrals.php
@@ -66,11 +66,6 @@
 		$this->cache = Cache::for('referrals', WEEK_IN_SECONDS);
 //		$this->requestCache = Cache::for('referral_requests', WEEK_IN_SECONDS)->connect('referrals', true);
 		$this->statsCache = Cache::for('referral_stats', WEEK_IN_SECONDS)->connect('referrals', true)->user();
-		if (JVB_TESTING) {
-			$this->cache->flush();
-//			$this->requestCache->flush();
-			$this->statsCache->flush();
-		}
 
 		$this->referralPage = $this->getReferralPageId();
 		$this->settings = $this->getRewardSettings();
@@ -852,7 +847,7 @@
 	public function getTopReferrers(int $limit = 10, string $period = 'all'): array
 	{
 		return $this->statsCache->remember(
-			$this->statsCache->generateKey(['per_page' => $limit, 'period' => $period]),
+			['per_page' => $limit, 'period' => $period],
 			function() use ($limit, $period) {
 				$where = '';
 				if ($period !== 'all') {

--
Gitblit v1.10.0