Merge "Followup I4049b666: "Removing prefix exception for HTMLCheckMatrix""
[lhc/web/wiklou.git] / includes / filebackend / FileBackendMultiWrite.php
index f00ef65..bfffcc0 100644 (file)
@@ -662,8 +662,14 @@ class FileBackendMultiWrite extends FileBackend {
                }
        }
 
+       public function preloadCache( array $paths ) {
+               $realPaths = $this->substPaths( $paths, $this->backends[$this->masterIndex] );
+               $this->backends[$this->masterIndex]->preloadCache( $realPaths );
+       }
+
        public function preloadFileStat( array $params ) {
-               $this->backends[$this->masterIndex]->preloadFileStat( $params );
+               $realParams = $this->substOpPaths( $params, $this->backends[$this->masterIndex] );
+               return $this->backends[$this->masterIndex]->preloadFileStat( $realParams );
        }
 
        public function getScopedLocksForOps( array $ops, Status $status ) {