Skip to content

Commit

Permalink
Change cache ttl for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolcher committed Nov 29, 2024
1 parent a19d26a commit 169fa35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dito/app/utils/strapiData.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function generateCacheKey(query: string, variables?: object): string {
return `cache:${hash}`;
}

const cache = new NodeCache({ stdTTL: 3600, checkperiod: 10 });
const cache = new NodeCache({ stdTTL: 60, checkperiod: 10 });

export async function fetchStrapiData<DataType>(
query: string,
Expand Down

0 comments on commit 169fa35

Please sign in to comment.