Merge "Fix RepoGroup caching bug"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 3 Jan 2018 20:55:44 +0000 (20:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 3 Jan 2018 20:55:44 +0000 (20:55 +0000)
includes/GlobalFunctions.php
includes/filerepo/RepoGroup.php

index 523a0f9..310adeb 100644 (file)
@@ -2910,7 +2910,7 @@ function wfGetLBFactory() {
  * Find a file.
  * Shortcut for RepoGroup::singleton()->findFile()
  *
- * @param string $title String or Title object
+ * @param string|Title $title String or Title object
  * @param array $options Associative array of options (see RepoGroup::findFile)
  * @return File|bool File, or false if the file does not exist
  */
index 5e37d67..24d1ab2 100644 (file)
@@ -138,7 +138,7 @@ class RepoGroup {
                $dbkey = $title->getDBkey();
                if ( empty( $options['ignoreRedirect'] )
                        && empty( $options['private'] )
-                       && empty( $options['bypassCache'] )
+                       && empty( $options['latest'] )
                ) {
                        $time = isset( $options['time'] ) ? $options['time'] : '';
                        if ( $this->cache->has( $dbkey, $time, 60 ) ) {