Skip to content

Commit 76484e9

Browse files
committed
Fix LRUCache expiration to use GM_EXPRESS_EXPIRATION environment variable
1 parent d30be88 commit 76484e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/selfhost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { logger } from "https://deno.land/x/hono@v3.2.7/middleware/logger/index.
55
import LRUCache from "https://deno.land/x/lru_cache@6.0.0-deno.4/mod.ts"
66

77
const expiration = parseInt(Deno.env.get("GM_EXPRESS_EXPIRATION") || "") || 5 * 60 * 1000
8-
const store = new LRUCache({ maxAge: TTL_DETAULT, max: 1024 })
8+
const store = new LRUCache({ maxAge: expiration, max: 1024 })
99

1010
const expressStub = {
1111
get: async (key, _metadata) => {

0 commit comments

Comments
 (0)