From: Aaron Schulz Date: Wed, 22 Jul 2015 19:04:47 +0000 (-0700) Subject: Clear the stat cache in addMissingMetadata() to avoid more POSTs X-Git-Tag: 1.31.0-rc.0~10612^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=54eb877a525cdf6f629740d9579682427578f750;p=lhc%2Fweb%2Fwiklou.git Clear the stat cache in addMissingMetadata() to avoid more POSTs Change-Id: Icc075e424bdbed6868692ec734dff1e7d2003dd6 --- diff --git a/includes/filebackend/SwiftFileBackend.php b/includes/filebackend/SwiftFileBackend.php index 2ccafe4b1d..1aab033b3f 100644 --- a/includes/filebackend/SwiftFileBackend.php +++ b/includes/filebackend/SwiftFileBackend.php @@ -693,6 +693,8 @@ class SwiftFileBackend extends FileBackendStore { 'headers' => $this->authTokenHeaders( $auth ) + $objHdrs ) ); if ( $rcode >= 200 && $rcode <= 299 ) { + $this->deleteFileCache( $path ); + return $objHdrs; // success } }