Clear the stat cache in addMissingMetadata() to avoid more POSTs
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 22 Jul 2015 19:04:47 +0000 (12:04 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 22 Jul 2015 19:04:47 +0000 (12:04 -0700)
Change-Id: Icc075e424bdbed6868692ec734dff1e7d2003dd6

includes/filebackend/SwiftFileBackend.php

index 2ccafe4..1aab033 100644 (file)
@@ -693,6 +693,8 @@ class SwiftFileBackend extends FileBackendStore {
                                                'headers' => $this->authTokenHeaders( $auth ) + $objHdrs
                                        ) );
                                        if ( $rcode >= 200 && $rcode <= 299 ) {
+                                               $this->deleteFileCache( $path );
+
                                                return $objHdrs; // success
                                        }
                                }