Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to clear cached bids that have expired #10189

Closed
lcorrigall opened this issue Jul 7, 2023 · 2 comments · Fixed by #10308
Closed

Add the ability to clear cached bids that have expired #10189

lcorrigall opened this issue Jul 7, 2023 · 2 comments · Fixed by #10308

Comments

@lcorrigall
Copy link

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)

@patmmccann
Copy link
Collaborator

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.

@patmmccann
Copy link
Collaborator

Another suggestion: flush certain event types, not all analytics events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants