Actually write-back the container cache in SwiftFileBackend
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 16 Feb 2014 04:25:08 +0000 (20:25 -0800)
committerOri.livneh <ori@wikimedia.org>
Sun, 16 Feb 2014 07:33:13 +0000 (07:33 +0000)
Change-Id: Ia072dd09c1fa5b4dec20a80e69425f7364488362

includes/filebackend/SwiftFileBackend.php

index caf15aa..27493ae 100644 (file)
@@ -1332,6 +1332,7 @@ class SwiftFileBackend extends FileBackendStore {
                                        return $stat;
                                } else {
                                        $this->containerStatCache->set( $container, 'stat', $stat ); // cache it
+                                       $this->setContainerCache( $container, $stat ); // update persistent cache
                                }
                        } elseif ( $rcode === 404 ) {
                                return false;