Skip to content

Commit

Permalink
always use cache, and refresh every 10 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
mogii committed Sep 16, 2024
1 parent be8a221 commit 7ed42f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ class Plugin {
: await this.cache.getOrExec({
fnParams: [model],
fn: () => this.callTourplan(payload),
ttl: 60 * 60 * 2, // 2 hours
alwaysCache: true,
ttl: 60 * 10, // 10 mins
forceRefresh: Boolean(forceRefresh),
});
const products = R.call(R.compose(
Expand Down

0 comments on commit 7ed42f0

Please sign in to comment.