Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

One unreachable invalidation URL stops purges to the others

Open
#325 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php, symfony
Domain
api, backend

Research direction

Start at API Platform's SurrogateKeysPurger::purge() and trace the bundle purger entry point, focusing on the per-chunk and per-URL loop described in the issue. Done means a failed invalidation URL does not prevent later chunks or other URLs from being attempted, while failures remain handled consistently with #311.

Written by the indexing model from the issue text.

Description

Found under #311. API Platform's SurrogateKeysPurger::purge() sends one request per chunk per invalidation URL in a loop. The first failure throws out of purge(), and after #311 it is logged and swallowed. That abandons the rest of the loop, so later header chunks and any other invalidation URLs are never sent for that flush.

With a single cache (the CWA template) this makes no difference. With several caches, one of them being down leaves the others stale for up to s-maxage.

The loop is in API Platform, so a fix is either upstream, or a bundle purger that sends to each URL independently and collects failures.

Dominant language
PHP
Stars
32
Forks
8
Avg merge
58m
Merged PRs (30d)
147

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from components-web-app/api-components-bundle

All issues in components-web-app/api-components-bundle

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.