缓存优化

This commit is contained in:
tangly1024
2022-01-27 13:58:49 +08:00
parent 44c698fd4d
commit 63e39fa2a8
6 changed files with 26 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ export async function getGlobalNotionData ({
*/
export async function getNotionPageData ({ pageId, from }) {
// 尝试从缓存获取
const cacheKey = 'page_record_map_' + pageId
const cacheKey = 'page_block_' + pageId
const data = await getDataFromCache(cacheKey)
if (data) {
console.log('[请求缓存]:', `from:${from}`, `id:${pageId}`)