Fix comments added in change 10088
authorLiangent <liangent@gmail.com>
Tue, 5 Jun 2012 23:30:49 +0000 (07:30 +0800)
committerAntoine Musso <hashar@free.fr>
Tue, 19 Jun 2012 08:37:07 +0000 (10:37 +0200)
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

index 08e06ea..7efb082 100644 (file)
@@ -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() )
                        ) {