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
$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() )
) {