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

---
 inc/rest/routes/FormRoutes.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/rest/routes/FormRoutes.php b/inc/rest/routes/FormRoutes.php
index 0e5cfd2..198e702 100644
--- a/inc/rest/routes/FormRoutes.php
+++ b/inc/rest/routes/FormRoutes.php
@@ -30,7 +30,7 @@
 	{
 		parent::__construct();
 		$this->action = 'form-';
-		$this->cache = new CacheManager('form_submissions', HOUR_IN_SECONDS);
+		$this->cache = CacheManager::for('forms', HOUR_IN_SECONDS);
 
 		// Initialize Cloudflare Turnstile if available
 		$this->turnstile = class_exists('JVBase\managers\CloudflareTurnstile') && jvbSiteUsesCloudflare()
@@ -159,7 +159,7 @@
 		}
 
 		// Store submission data temporarily for success display
-		$this->cache->set('submission_' . $form_id, $processed_data, HOUR_IN_SECONDS);
+		$this->cache->set('submission_' . $form_id, $processed_data);
 
 		// Log successful submission
 		$this->recordSubmission($_SERVER['REMOTE_ADDR'], $processed_data['email'] ?? '');

--
Gitblit v1.10.0