mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Update staticid system for viewing news.
This commit is contained in:
parent
0ed7ca8f80
commit
9accdb28c1
6 changed files with 109 additions and 151 deletions
|
@ -1,6 +1,6 @@
|
|||
const cacheEnabled = true;
|
||||
let cachedData: { data: string[]; timestamp: number } | null = null;
|
||||
const CACHE_DURAION = 1000 * 60 * 60; // 1 Hour
|
||||
const CACHE_DURATION = 1000 * 60 * 60; // 1 Hour
|
||||
export default defineEventHandler(async (event) => {
|
||||
if (
|
||||
cachedData &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue