* Previously the path substitution did not take place
Change-Id: I58ad3e2aa44a2b08f4c6bad1a783fb92ea79dbf4
*
* @param array $paths Storage paths
*/
- public function preloadCache( array $paths ) {
- }
+ abstract public function preloadCache( array $paths );
/**
* Invalidate any in-process file stat and property cache.
*
* @param array $paths Storage paths (optional)
*/
- public function clearCache( array $paths = null ) {
- }
+ abstract public function clearCache( array $paths = null );
/**
* Preload file stat information (concurrently if possible) into in-process cache.
}
}
+ 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] );
+ $this->backends[$this->masterIndex]->preloadFileStat( $realParams );
}
public function getScopedLocksForOps( array $ops, Status $status ) {