Skip to content

Commit

Permalink
[BUGFIX] Flush request cache after creating or renaming files
Browse files Browse the repository at this point in the history
solves: #123
  • Loading branch information
Lagerregal committed Aug 11, 2023
1 parent 677a82e commit a374716
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Driver/AmazonS3Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@ protected function createObject($identifier, $body = '', $overrideArgs = [])
];
$this->s3Client->putObject(array_merge_recursive($args, $overrideArgs));
$this->flushMetaInfoCache($identifier);
$this->resetRequestCache();
}

/**
Expand All @@ -1402,6 +1403,7 @@ protected function renameObject($identifier, $newIdentifier)
$this->identifierMap[$identifier] = $newIdentifier;
$this->flushMetaInfoCache($identifier);
$this->flushMetaInfoCache($newIdentifier);
$this->resetRequestCache();
}

/**
Expand Down

0 comments on commit a374716

Please sign in to comment.