diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2016-09-14 13:36:34 -0700 |
---|---|---|
committer | Kunal Mehta <legoktm@member.fsf.org> | 2016-09-20 00:53:26 -0700 |
commit | 108ccb0352241cc7dbf0d73a48bd0b1b6f9fc8f4 (patch) | |
tree | 971fe1a25631b9025ba67b188535d19e49e271ea /includes/actions | |
parent | 2155a01fd1b3651e59f4db49661e92c9e86e4f25 (diff) | |
download | mediawikicore-108ccb0352241cc7dbf0d73a48bd0b1b6f9fc8f4.tar.gz mediawikicore-108ccb0352241cc7dbf0d73a48bd0b1b6f9fc8f4.zip |
Make rebuildFileCache cover ?action=history
Also simplified the logic slightly
Change-Id: I6145d52b6b701735fa4bd8e41e07fb2bf6fdcee3
Diffstat (limited to 'includes/actions')
-rw-r--r-- | includes/actions/HistoryAction.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 41378fb69337..f3ef3b3cb6ab 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -105,8 +105,7 @@ class HistoryAction extends FormlessAction { $config = $this->context->getConfig(); # Fill in the file cache if not set already - $useFileCache = $config->get( 'UseFileCache' ); - if ( $useFileCache && HTMLFileCache::useFileCache( $this->getContext() ) ) { + if ( HTMLFileCache::useFileCache( $this->getContext() ) ) { $cache = new HTMLFileCache( $this->getTitle(), 'history' ); if ( !$cache->isCacheGood( /* Assume up to date */ ) ) { ob_start( [ &$cache, 'saveToFileCache' ] ); |