Skip to content

Commit 36af245

Browse files
committed
ee
1 parent 944e75b commit 36af245

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

frontend/cache-handler.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CacheHandler } from "@neshca/cache-handler";
22
import createLruHandler from "@neshca/cache-handler/local-lru";
3-
import createRedisHandler from "@neshca/cache-handler/redis-stack";
3+
import createRedisHandler from "@neshca/cache-handler/redis-strings";
44
import { createClient } from "redis";
55

66
CacheHandler.onCreation(async () => {
@@ -57,8 +57,11 @@ CacheHandler.onCreation(async () => {
5757
// Create the `redis-stack` Handler if the client is available and connected.
5858
handler = await createRedisHandler({
5959
client,
60-
keyPrefix: "nextjs:",
60+
keyPrefix: `${process.env.GIT_HASH}:`,
6161
timeoutMs: 1000,
62+
keyExpirationStrategy: "EXAT",
63+
sharedTagsKey: "__sharedTags__",
64+
revalidateTagQuerySize: 100,
6265
});
6366
} else {
6467
// Fallback to LRU handler if Redis client is not available.

infrastructure/applications/pycon_frontend/task.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ resource "aws_ecs_task_definition" "pycon_frontend" {
4242
},
4343
{
4444
name = "REDIS_URL",
45-
value = "redis://${var.server_ip}/2"
45+
value = "redis://${var.server_ip}/3"
46+
},
47+
{
48+
name = "NEXT_PRIVATE_DEBUG_CACHE",
49+
value = "true"
4650
}
4751
]
4852

0 commit comments

Comments
 (0)