Skip to content

Commit

Permalink
fix: limit max items in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Apr 2, 2024
1 parent 1080fb9 commit f0e57c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/data/server/cache.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FetchResponse, FetchStrategyCacheHandler } from '@headstartwp/core';
import TTLCache from '@isaacs/ttlcache';

const ttlcache = new TTLCache({ max: 10000 });
const ttlcache = new TTLCache({ max: 100 });

const cache: FetchStrategyCacheHandler<unknown> = {
set(key, data, ttl) {
Expand Down

0 comments on commit f0e57c0

Please sign in to comment.