| | |
| | | $this->role = Site::getReferralRole(); |
| | | $this->default_settings['referral_role'] = $this->role; |
| | | |
| | | $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(); |
| | | $this->cache = Cache::for('referrals'); |
| | | |
| | | $this->statsCache = Cache::for('referral_stats', null, WEEK_IN_SECONDS)->user(); |
| | | |
| | | $this->referralPage = $this->getReferralPageId(); |
| | | $this->settings = $this->getRewardSettings(); |
| | |
| | | */ |
| | | protected function generateCSV(array $referrals): string |
| | | { |
| | | $cache = Cache::for('referralCSV', HOUR_IN_SECONDS)->connect('referrals'); |
| | | $cache = Cache::for('referralCSV', null, HOUR_IN_SECONDS); |
| | | return $cache->remember( |
| | | 'csv', |
| | | function () use ($referrals) { |