Jake Vanderwerf
2025-11-10 e9967fa22781d922ba4eb8fb44fe72d200ac4b14
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'] ?? '');