优化siteSettings.js
This commit is contained in:
parent
a0d2f9529f
commit
8f83b98a3f
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user