Skip to content

[pull] master from apify:master#240

Merged
pull[bot] merged 2 commits into
threatcode:masterfrom
apify:master
Jul 14, 2026
Merged

[pull] master from apify:master#240
pull[bot] merged 2 commits into
threatcode:masterfrom
apify:master

Conversation

@pull

@pull pull Bot commented Jul 14, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

barjin and others added 2 commits July 14, 2026 10:43
…tsBatched (#3843)

`addRequestsBatched()` only caches the first batch in `requestCache`
(#2456), so on densely-linked sites overlapping `enqueueLinks`
re-submits everything beyond the first batch on every page.

I went with @janbuchar 's suggestion instead to not regress #2456

- Add a fixed-size `RequestDeduplicationCache` (direct-mapped,
`uniqueKey` hash -> `requestId`)
- Populate it on every batch (including background ones) and consult it
before hitting the client
- `requestCache` is untouched, so the #2456 optimization is preserved

Applied in the shared `RequestProvider.addRequests` so it covers both v2

Closes #3120
@pull pull Bot locked and limited conversation to collaborators Jul 14, 2026
@pull pull Bot added the ⤵️ pull label Jul 14, 2026
@pull pull Bot merged commit 704c269 into threatcode:master Jul 14, 2026
@pull pull Bot had a problem deploying to github-pages July 14, 2026 10:19 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants