Merge "filecache: Use current action instead of "view" only in outage mode"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 30 Jun 2017 07:49:47 +0000 (07:49 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 30 Jun 2017 07:49:47 +0000 (07:49 +0000)
includes/MediaWiki.php

index 364ed86..19e827d 100644 (file)
@@ -539,7 +539,7 @@ class MediaWiki {
                                HTMLFileCache::useFileCache( $this->context, HTMLFileCache::MODE_OUTAGE )
                        ) {
                                // Try to use any (even stale) file during outages...
-                               $cache = new HTMLFileCache( $context->getTitle(), 'view' );
+                               $cache = new HTMLFileCache( $context->getTitle(), $action );
                                if ( $cache->isCached() ) {
                                        $cache->loadFromFileCache( $context, HTMLFileCache::MODE_OUTAGE );
                                        print MWExceptionRenderer::getHTML( $e );