summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index 4dc6ff37b19..a775195e85e 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
@@ -75,11 +75,6 @@ class Swift extends \OC\Files\Storage\Common {
private $id;
/**
- * @var array
- */
- private static $tmpFiles = array();
-
- /**
* Key value cache mapping path to data object. Maps path to
* \OpenCloud\OpenStack\ObjectStorage\Resource\DataObject for existing
* paths and path to false for not existing paths.
@@ -617,7 +612,7 @@ class Swift extends \OC\Files\Storage\Common {
$fileData = fopen($tmpFile, 'r');
$this->getContainer()->uploadObject($path, $fileData);
// invalidate target object to force repopulation on fetch
- $this->objectCache->remove(self::$tmpFiles[$tmpFile]);
+ $this->objectCache->remove($path);
unlink($tmpFile);
}