Skip to content

Feature/cache purged event#5

Merged
eminos merged 3 commits intoeminos:mainfrom
sheadawson:feature/cache-purged-event
Feb 20, 2026
Merged

Feature/cache purged event#5
eminos merged 3 commits intoeminos:mainfrom
sheadawson:feature/cache-purged-event

Conversation

@sheadawson
Copy link
Contributor

Added an Event that fires when the cache is purged. This allowed me to fire a cache regeneration job to rebuild the Cloudflare cache after purging 🚀

sheadawson and others added 3 commits February 17, 2026 12:07
- Create CachePurged event with $urls and $purgedEverything properties
- Fire event from PurgeCloudflareCache listener after successful purges
- Fire event from PurgeCloudflareCacheJob after successful purges
- Supports both synchronous and queued purge paths

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Test event is fired after synchronous purge with URLs
- Test event is fired after synchronous purge everything
- Test event is fired after queued purge with URLs
- Test event is fired after queued purge everything
- Test event is not fired when cache is disabled

All 22 tests passing.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@eminos eminos merged commit 68c6baf into eminos:main Feb 20, 2026
3 checks passed
@eminos
Copy link
Owner

eminos commented Feb 20, 2026

Thank you @sheadawson, looking good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants