From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind
---
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