Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3Boto3: remove entry from cache on delete when preload_metadata is True #749

Merged
merged 1 commit into from Sep 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions storages/backends/s3boto3.py
Expand Up @@ -521,6 +521,9 @@ def delete(self, name):
name = self._normalize_name(self._clean_name(name))
self.bucket.Object(self._encode_name(name)).delete()

if name in self._entries:
del self._entries[name]

def exists(self, name):
name = self._normalize_name(self._clean_name(name))
if self.entries:
Expand Down