This commit is contained in:
Emily
2024-10-07 15:26:57 +02:00
parent c2846ca595
commit b27cacf4e6
50 changed files with 512 additions and 583 deletions

View File

@@ -14,7 +14,7 @@ export default defineEventHandler(async event => {
const { pid, from, to, slice, project_id } = data;
const cacheKey = `timeline:bouncing_rate:${pid}:${from}:${to}`;
const cacheKey = `timeline:bouncing_rate:${pid}:${slice}:${from}:${to}`;
const cacheExp = 60 * 60; //1 hour
return await Redis.useCacheV2(cacheKey, cacheExp, async (noStore, updateExp) => {