You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, Prebid keeps every bid it receives stored in memory until the user leaves the page. This can cause high memory usage on long-running single-page apps; you can configure Prebid to drop stale bids from memory with `minBidCacheTTL`:
289
+
290
+
```javascript
291
+
pbjs.setConfig({
292
+
minBidCacheTTL:60// minimum time (in seconds) that bids should be kept in cache
293
+
})
294
+
```
295
+
296
+
When set, bids are only kept in memory for the duration of their TTL or the value of `minBidCacheTTL`, whichever is greater. Setting `minBidCacheTTL: 0` causes bids to be dropped as soon as they expire.
297
+
298
+
#### Event history TTL
299
+
300
+
<aid="setConfig-eventHistoryTTL"></a>
301
+
302
+
By default, Prebid keeps in memory a log of every event since the initial page load, and makes it available to analytics adapters and [getEvents()](/dev-docs/publisher-api-reference/getEvents.html).
303
+
This can cause high memory usage on long-running single-page apps; you can set a limit on how long events are preserved with `eventHistoryTTL`:
304
+
305
+
```javascript
306
+
pbjs.setConfig({
307
+
eventHistoryTTL:60// maximum time (in seconds) that events should be kept in memory
0 commit comments