Skip to content

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Sep 26, 2025

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.

@Mic92 Mic92 force-pushed the fastly branch 2 times, most recently from 544a2d9 to 931deba Compare September 26, 2025 17:50
@Mic92 Mic92 requested a review from Copilot September 26, 2025 17:50
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

1 participant