From 42fa8304ddb811b0f725f245130f70c0f5e86a6c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 04 Nov 2025 06:12:02 +0000
Subject: [PATCH] =Refactored LoginManager to be more extensible and configurable, as well as an AjaxRateLimiter

---
 icons.php |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/icons.php b/icons.php
index be6007c..6685f4f 100644
--- a/icons.php
+++ b/icons.php
@@ -171,6 +171,7 @@
 		'project'		=> 'code',
 		'map'			=> 'map-trifold',
 		'offer'			=> 'gift',
+		'referrals'		=> 'hand-heart'
 	];
 
 
@@ -374,10 +375,11 @@
 
     public function __construct()
     {
-		$this->cache = new CacheManager('icons', 604800); //1 week in seconds
+		$this->cache = CacheManager::for('icons', WEEK_IN_SECONDS);
 //		$this->cache->invalidateGroup('icons');
 		$this->style = JVB_SITE['icons']??'regular';
 
+
 		$this->used = get_option(BASE.'used_icons', [
 			$this->style => [
 				'heart',
@@ -475,7 +477,8 @@
 				'location',
 				'hours',
 				'star',
-				'star-half'
+				'star-half',
+				'exclamation-mark'
 			],
 			'fill'	=> [
 				'heart',
@@ -544,13 +547,12 @@
             'color' => 'currentColor'
         ], $options);
 
-		$icon = $this->cache->remember(
+		return $this->cache->remember(
 			array_merge($options, ['name' => $name]),
 			function () use ($name, $options) {
 				return $this->buildIcon($name, $options);
 			}
 		);
-		return $icon;
     }
 
     public function getIconsByGroup(string $group):array

--
Gitblit v1.10.0