Skip to content

Image cache purger - #4954

Open
lindseydew wants to merge 45 commits into
mainfrom
ld/image-cache-purger
Open

lindseydew wants to merge 45 commits into
mainfrom
ld/image-cache-purger

Conversation

@lindseydew

@lindseydew lindseydew commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

This creates a lambda service which listens to s3 notifications when images are deleted from the [media-origin.test.dev-guim.co.uk](https://eu-west-1.console.aws.amazon.com/s3/buckets/media-origin.test.dev-guim.co.uk?region=eu-west-1) bucket

It then calls the fastly cache purger for the media.guim and i.guim domains.

How should a reviewer test this change?

To test:
Crop an image in grid:
https://media.test.dev-gutools.co.uk/images/eb70ab23c51544cdc58c51306928a3e69df8045d?crop=0_0_4860_3240
Check the image at
https://media.guimcode.co.uk/eb70ab23c51544cdc58c51306928a3e69df8045d/0_0_4860_3240/2000.jpg
https://i.guimcode.co.uk/img/media/eb70ab23c51544cdc58c51306928a3e69df8045d/0_0_4860_3240/2000.jpg?width=480&dpr=1&s=none&crop=none

Then, delete the crops.

Then check the urls again. Should see a 403.

How can success be measured?

Steps for deploying to PROD

  • Update the secrets arn

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

@lindseydew lindseydew added the dependencies Pull requests that update a dependency file label Sep 21, 2026
@lindseydew
lindseydew marked this pull request as ready for review September 21, 2026 09:10
@lindseydew
lindseydew requested a review from a team as a code owner September 21, 2026 09:10
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

@lindseydew lindseydew removed the dependencies Pull requests that update a dependency file label Sep 24, 2026
@lindseydew lindseydew changed the title Ld/image cache purger Image cache purger Sep 24, 2026
@lindseydew lindseydew added the feature Departmental tracking: work on a new feature label Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant