Skip to content

Commit

Permalink
add a ttl of 1day
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayachand committed Sep 21, 2023
1 parent 40ef637 commit 4c954e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util/eventValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ const hash = require('object-hash');
const logger = require('../logger');
const trackingPlan = require('./trackingPlan');

const SECONDS_IN_DAY = 60 * 60 * 24 * 1;
const eventSchemaCache = new NodeCache();
const ajv19Cache = new NodeCache({ useClones: false, stdTTL: 60 * 60 * 24 * 1 });
const ajv4Cache = new NodeCache({ useClones: false });
const ajv19Cache = new NodeCache({ useClones: false, stdTTL: SECONDS_IN_DAY });
const ajv4Cache = new NodeCache({ useClones: false, stdTTL: SECONDS_IN_DAY });
const { isEmptyObject } = require('../v0/util');

const defaultOptions = {
Expand Down

0 comments on commit 4c954e6

Please sign in to comment.