From 531995c9a5a1a2a00bce32c19bcbf4fcd563e005 Mon Sep 17 00:00:00 2001 From: moonshells Date: Tue, 10 Apr 2018 22:58:18 -0700 Subject: [PATCH] skip cache process if videoCacheKey already exists --- src/bidmanager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bidmanager.js b/src/bidmanager.js index f3379e7fee4..390ceab43a5 100644 --- a/src/bidmanager.js +++ b/src/bidmanager.js @@ -216,7 +216,7 @@ function addBidToAuction(bid) { // Video bids may fail if the cache is down, or there's trouble on the network. function tryAddVideoBid(bid) { - if (config.getConfig('usePrebidCache')) { + if (config.getConfig('usePrebidCache') && !bid.videoCacheKey) { store([bid], function(error, cacheIds) { if (error) { utils.logWarn(`Failed to save to the video cache: ${error}. Video bid must be discarded.`);