Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
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') {