Problem/Motivation
As an administrator I need to define dynamic tag exclusion patterns in the govcms_akamai_purge.settings.yml configuration so that tags generated at runtime (for example my_plugin:[random-hash]) can be excluded without specifying each value manually.
Steps to reproduce
The current configuration entries tag_blocklist and tag_exclusions do not support wildcard patterns (for example, my_plugin:*). This limits the ability to exclude a series of dynamic or programmatically generated tags from purge requests. Admins must list every specific tag if values vary.
Proposed resolution
Noting that this will not perform wildcard purges on Akamai, which is not supported. This is for filtering before sending to Akamai only.
- The configuration accepts wildcard patterns (*, ?, or similar) for tag_blocklist and tag_exclusions.
- The pattern matching is implemented in the module’s tag filtering logic before generating the purge request.
- Wildcards match multiple dynamic tags (for example my_plugin:* matches my_plugin:variation1 and my_plugin:[generated-hash]).
- The matching logic is efficient and safe (does not degrade performance).
- Admin documentation is updated to describe wildcard usage and supported pattern syntax.
Remaining tasks
TBA
User interface changes
Support wildcard '*' in the config (similar to core Block visibility rules)


API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|
Issue fork govcms_akamai_purge-3571146
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
almunningsComment #3
almunningsSelf postponing pending outcome of #3571145: Add a Purge Path Processor for the Purge Module
Comment #4
almunningsSelf closing, I will not be pursuing this further.
I hope you include a regex tag filter in the future.
Comment #6
sonnyktre-opening as we are looking to implement this feature.
Comment #7
sonnyktComment #12
sonnyktComment #13
sonnyktComment #15
sonnyktReleased in 3.0.0-beta2.
Comment #17
sonnykt