Skip to content

Livewrapped Analytics Adapter: Clear Livewrapped analytics cache when pbjs.clearAllAuctions is called#14868

Closed
bjorn-lw wants to merge 2 commits into
prebid:10.29.x-legacyfrom
Livewrapped-official:maintenance/2605/clear_cache
Closed

Livewrapped Analytics Adapter: Clear Livewrapped analytics cache when pbjs.clearAllAuctions is called#14868
bjorn-lw wants to merge 2 commits into
prebid:10.29.x-legacyfrom
Livewrapped-official:maintenance/2605/clear_cache

Conversation

@bjorn-lw
Copy link
Copy Markdown
Contributor

@bjorn-lw bjorn-lw commented May 11, 2026

Type of change

  • [x ] Bugfix
  • [x ] Feature

Description of change

A change was applied (#13639) that broke the Livewrapped Analytics adapter. This will fix the issue and hopefully not trigger the robot again.

Other information

#13639
#14870

@review-assignment-bot review-assignment-bot Bot requested a review from mkomorski May 11, 2026 11:40
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7cb793f22b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +426 to +428
prebidGlobal.clearAllAuctions = function() {
cache.auctions = {};
baseClearAllAuctions();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore automatic eviction of sent auction cache

This change makes cache.auctions cleanup depend entirely on pbjs.clearAllAuctions(), but that API is optional and typically not called in normal auction flows. After removing the timed cleanup in sendEvents, every completed auction remains in memory indefinitely, so sendEvents keeps iterating an ever-growing cache on subsequent auctions and can degrade long-lived pages (memory and CPU) even when no new data from old auctions is sent.

Useful? React with 👍 / 👎.

@bjorn-lw
Copy link
Copy Markdown
Contributor Author

@patmmccann so it's not possible to submit PRs to legacy branches?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants