Jake Vanderwerf
2026-01-25 b38f03c0e7218762d90fa5092696b127f24f36db
inc/rest/routes/ReferralRoutes.php
@@ -312,7 +312,7 @@
         }
      }
      $this->cache->clear();
      $this->cache->flush();
      return $this->success(['message' => "Referral marked as {$status}"]);
   }
@@ -348,7 +348,7 @@
      }
      $this->wpdb->delete($this->referrals_table, ['id' => $referral_id], ['%d']);
      $this->cache->clear();
      $this->cache->flush();
      return $this->success(['message' => 'Referral removed']);
   }
@@ -508,7 +508,7 @@
      ];
      update_option(BASE . 'referral_settings', $settings);
      $this->cache->clear();
      $this->cache->flush();
      return $this->success([
         'message' => 'Settings updated',
@@ -638,7 +638,7 @@
         $data['message']
      );
      if ($result['success']) {
         $this->cache->clear();
         $this->cache->flush();
      }
      // Build summary message
@@ -735,7 +735,7 @@
      }
      // Clear cache
      $this->cache->clear();
      $this->cache->flush();
      return new WP_REST_Response([
         'success' => true,
@@ -805,7 +805,7 @@
      }
      // Clear cache
      $this->cache->clear();
      $this->cache->flush();
      return new WP_REST_Response([
         'success' => true,