From a2f9b7e35d8c3238aade1687c150bf1f719eaff6 Mon Sep 17 00:00:00 2001 From: Liangent Date: Wed, 6 Jun 2012 07:30:49 +0800 Subject: [PATCH] Fix comments added in change 10088 I found my comments in change 10088 is inadequate because we don't have any known squid URLs in Title::getSquidURLs() and we may never want to have... There's no hook there so extensions are unable to add any squid URLs for them (maybe we want one someday? but new extensions shouldn't be using the UnknownAction hook). Change-Id: I44ba376f92776ec6bb32f91beb06f11ebd086fb4 --- includes/Wiki.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index 08e06eae31..7efb082755 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -482,9 +482,7 @@ class MediaWiki { $action = Action::factory( $act, $page ); if ( $action instanceof Action ) { - # When it's a known action, let Squid cache things if we can purge them. - # If the action is unknown, we don't know what may happen in an extension, - # but not caching can be always safe. + # Let Squid cache things if we can purge them. if ( $wgUseSquid && in_array( $request->getFullRequestURL(), $title->getSquidURLs() ) ) { -- 2.20.1