Magzine主题基础版本

This commit is contained in:
tangly1024.com
2024-09-13 17:07:09 +08:00
parent e01d090e8c
commit 0dae01f547
23 changed files with 499 additions and 229 deletions

View File

@@ -8,7 +8,7 @@ import MemoryCache from './memory_cache'
* @returns
*/
export async function getDataFromCache(key, force) {
if (JSON.parse(BLOG.ENABLE_CACHE) || force) {
if (BLOG.ENABLE_CACHE || force) {
const dataFromCache = await getApi().getCache(key)
if (JSON.stringify(dataFromCache) === '[]') {
return null