mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
bugFix:
最新文章排序; 输入框底边样式; 目录背景色高度; 夜间模式按钮颜色; 移动端隐藏悬浮Darkmode按钮;
This commit is contained in:
6
lib/cache/cache_manager.js
vendored
6
lib/cache/cache_manager.js
vendored
@@ -1,7 +1,11 @@
|
||||
import { getCacheFromFile, setCacheToFile } from '@/lib/cache/local_file_cache'
|
||||
import { getCacheFromMemory, setCacheToMemory } from '@/lib/cache/memory_cache'
|
||||
import BLOG from '@/blog.config'
|
||||
|
||||
/**
|
||||
* 为减少频繁接口请求,notion数据将被缓存
|
||||
* @param {*} key
|
||||
* @returns
|
||||
*/
|
||||
export async function getDataFromCache (key) {
|
||||
let dataFromCache
|
||||
if (BLOG.isProd) {
|
||||
|
||||
Reference in New Issue
Block a user