Refresh Suggest hotel label from live CMS setting.
Local Build and Deploy / deploy (push) Successful in 56s

Avoid stale SSR/Redis cache keeping Suggest IT after habbo_gamedata_hotel changes.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-17 22:36:10 +02:00
1 parent 785c1b6976
commit a798999440
5 files changed
+49 -10

No files matched your search

+4 -4
View File
@@ -55,7 +55,7 @@ export const saveManagedSettings = adminAction(
}),
),
);
siteSettings.reload();
await siteSettings.reload();
if (entries.some(([key]) => key === HABBO_GAMEDATA_HOTEL_SETTING_KEY)) {
clearHabboItCache();
clearBadgeCache();
@@ -77,7 +77,7 @@ export async function updateSetting(formData: FormData): Promise<void> {
);
if (!key) return;
await prisma.websiteSetting.update({ where: { key }, data: { value } });
siteSettings.reload();
await siteSettings.reload();
bustGamedataCachesIfNeeded(key);
revalidatePath("/admin/settings");
}
@@ -102,7 +102,7 @@ export async function createSetting(formData: FormData): Promise<void> {
update: { value },
create: { key, value, comment: comment || null },
});
siteSettings.reload();
await siteSettings.reload();
bustGamedataCachesIfNeeded(key);
revalidatePath("/admin/settings");
}
@@ -114,7 +114,7 @@ export async function deleteSetting(formData: FormData): Promise<void> {
.trim();
if (!key) return;
await prisma.websiteSetting.delete({ where: { key } });
siteSettings.reload();
await siteSettings.reload();
bustGamedataCachesIfNeeded(key);
revalidatePath("/admin/settings");
}