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/BioRoutes.php | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/inc/rest/routes/BioRoutes.php b/inc/rest/routes/BioRoutes.php
index a265186..685c0b2 100644
--- a/inc/rest/routes/BioRoutes.php
+++ b/inc/rest/routes/BioRoutes.php
@@ -225,9 +225,7 @@
if (!$this->checkUser($user_id)) {
return [];
}
- //TODO: Check we're clearing this cache
- $key = sprintf('user_%c_thumbnail_data', $user_id);
- $cache = $this->cache->get($key);
+ $cache = $this->cache->get($user_id);
if ($cache) {
return $cache;
}
@@ -261,7 +259,7 @@
'type' => jvbArtistType($link),
];
- $this->cache->set($key, $data);
+ $this->cache->set($user_id, $data);
return $data;
}
--
Gitblit v1.10.0