Allow tag and url invalidations at the same time

Created on 26 August 2024, 3 months ago

Problem/Motivation

The Cloudflare Purger only allows purging a single purge method at one time (ie purge by tag or url) because it looks at the first invalidation in the queue and uses that method even if others are using a different method.

https://git.drupalcode.org/project/cloudflare/-/blob/2.0.x/modules/cloud...

One a site I'm working on, we want to use the tags to purge in Cloudflare but also be able to manually add urls as needed. We also add image style paths sometimes which are not tagged.

Steps to reproduce

Add invalidations of both methods tag and url to the queue and process the queue.

Proposed resolution

Allow different methods to work at the same time by breaking them up and calling api separately to purge.

✨ Feature request
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kleinmp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024