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
If useBidCache is enabled, Prebid.js will cache all bids and never releases them. On SPAs or other long lived pages that refresh ads this can contribute to increased memory usage. Prebid.js should have the ability to remove cached bids that are past their TTL. There are two options:
Function Call
Provide a function like clearExpiredBids that publishers could call in order to remove all bids past their TTL. This would be simpler to implement but require publishers to to call this on their sites.
Automatically
Prebid.js will remove bids past their TTL at some (TBD) periodic time.
One strategy discussed it a publisher can say at some point 'I dont plan to enableAnalytics'; at which point the event history preserved for this purpose can be released.
Type of issue
Enhancement
Description
If
useBidCache
is enabled, Prebid.js will cache all bids and never releases them. On SPAs or other long lived pages that refresh ads this can contribute to increased memory usage. Prebid.js should have the ability to remove cached bids that are past their TTL. There are two options:Function Call
Provide a function like
clearExpiredBids
that publishers could call in order to remove all bids past their TTL. This would be simpler to implement but require publishers to to call this on their sites.Automatically
Prebid.js will remove bids past their TTL at some (TBD) periodic time.
Other information
useBidCache documentation
[https://docs.prebid.org/dev-docs/faq.html#does-prebidjs-cache-bids](Prebld.js Bid Caching FAQ)
The text was updated successfully, but these errors were encountered: