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

Core: introduce new eventHistoryTTL and minBidCacheTTL settings to control memory usage #10308

Merged
merged 3 commits into from
Sep 7, 2023

Conversation

dgirardi
Copy link
Collaborator

@dgirardi dgirardi commented Aug 1, 2023

Type of change

  • Feature

Description of change

This introduces two new settings:

  • eventHistoryTTL is the time, in seconds, that events should be kept available through pbjs.getEvents() after they are emitted;
  • minBidCacheTTL is the minimum time, in seconds, that auctions (and related objects such as bids) should be kept available for pbjs.getAllWinningBids, pbjs.getNoBids, and related methods. If set, auctions are dropped after all the bids they contain expired, or after minBidCacheTTL seconds have passed since they ended, whichever comes last.

Other information

Closes #10189
Closes #10230

@robertrmartinez
Copy link
Collaborator

Hi all, I am finishing up a couple high priority projects on my side so will not be able to get to this review until next week.

Just wanted to give you a heads up.

@dgirardi
Copy link
Collaborator Author

dgirardi commented Aug 8, 2023

agreed to rename:

preserveBidCache -> minBidCacheTTL (and change logic to mean "minimum time auctions are persisted")

@patmmccann patmmccann requested review from jlquaccia and mmoschovas and removed request for robertrmartinez and Fawke August 9, 2023 16:06
@patmmccann patmmccann added the needs 2nd review Core module updates require two approvals from the core team label Aug 9, 2023
@dgirardi dgirardi changed the title Core: introduce new eventHistoryTTL and preserveBidCache settings to control memory usage Core: introduce new eventHistoryTTL and minBidCacheTTL settings to control memory usage Aug 10, 2023
@ChrisHuie ChrisHuie added needs 2nd review Core module updates require two approvals from the core team and removed needs 2nd review Core module updates require two approvals from the core team labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Req: allow preserveHistory time to be defined Add the ability to clear cached bids that have expired
7 participants