Conversation
Mic92
commented
Sep 26, 2025
544a2d9 to
931deba
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new MediaWiki extension for integrating with Fastly CDN for cache purging, providing an alternative to Cloudflare-based solutions. The extension implements proper event relaying and batched API calls to efficiently manage cache invalidation.
- Implements a complete MediaWiki extension with proper service wiring and configuration management
- Provides batched URL purging with soft purge capabilities to protect origin servers
- Integrates with MediaWiki's EventRelayer system for comprehensive cache invalidation
Reviewed Changes
Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pkgs/mediawiki-fastly-purge/package.nix | Nix package definition for the MediaWiki extension |
| pkgs/mediawiki-fastly-purge/lint.nix | Development tooling for PHP linting and code quality checks |
| pkgs/mediawiki-fastly-purge/includes/*.php | Core extension classes implementing Fastly API integration and event handling |
| pkgs/mediawiki-fastly-purge/extension.json | MediaWiki extension manifest with configuration and hook definitions |
| pkgs/mediawiki-fastly-purge/composer.json | PHP dependency management and development scripts |
| pkgs/mediawiki-fastly-purge/.phan/config.php | Static analysis configuration for type checking |
| pkgs/mediawiki-fastly-purge/flake-module.nix | Nix flake integration for packaging and development environment |
| flake.nix | Root flake file updated to include the new extension module |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fully typechecked but still vapourware because untested.
I got inspired by https://www.mediawiki.org/wiki/Extension:CloudflarePurge
However they use not the right API. This extension should provide the same level of cache invalidation as varnish.