优化siteSettings.js

This commit is contained in:
jingrow 2025-06-21 20:14:49 +08:00
parent a0d2f9529f
commit 8f83b98a3f

View File

@ -16,7 +16,7 @@ export async function getSiteSettings(siteUrl) {
? `${siteUrl}/api/get-site-settings` ? `${siteUrl}/api/get-site-settings`
: '/api/get-site-settings'; : '/api/get-site-settings';
try { try {
const res = await fetch(url, { cache: 'no-store' }); const res = await fetch(url);
const json = await res.json(); const json = await res.json();
cache = json.data || {}; cache = json.data || {};
lastFetch = Date.now(); lastFetch = Date.now();