mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-20 07:26:46 +00:00
修复定时文章功能
This commit is contained in:
2
lib/cache/cache_manager.js
vendored
2
lib/cache/cache_manager.js
vendored
@@ -57,7 +57,7 @@ export async function getOrSetDataWithCustomCache(
|
||||
* @returns
|
||||
*/
|
||||
export async function getDataFromCache(key, force) {
|
||||
if (BLOG.ENABLE_CACHE || force) {
|
||||
if (JSON.parse(BLOG.ENABLE_CACHE) || force) {
|
||||
const dataFromCache = await getApi().getCache(key)
|
||||
if (!dataFromCache || JSON.stringify(dataFromCache) === '[]') {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user