mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Don't delete cache entry that gets overwritten
It's unnecessary.
This commit is contained in:
parent
07c792f14e
commit
a1ebc52b39
1 changed files with 0 additions and 5 deletions
|
@ -796,11 +796,6 @@ class Collection(BaseCollection):
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
"Failed to load history cache entry %r in %r: %s",
|
"Failed to load history cache entry %r in %r: %s",
|
||||||
href, self.path, e, exc_info=True)
|
href, self.path, e, exc_info=True)
|
||||||
# Delete the damaged file
|
|
||||||
try:
|
|
||||||
os.remove(os.path.join(history_folder, href))
|
|
||||||
except (FileNotFoundError, PermissionError):
|
|
||||||
pass
|
|
||||||
cache_etag = ""
|
cache_etag = ""
|
||||||
# Initialize with random data to prevent collisions with cleaned
|
# Initialize with random data to prevent collisions with cleaned
|
||||||
# expired items.
|
# expired items.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue