bugfix: cache entry invalidation
- davkey has no "cls" argument - needs explicit slice
This commit is contained in:
parent
804657c55b
commit
125638756c
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ class WebDAV:
|
||||||
cls._webdav_client.upload_to(buffer, path)
|
cls._webdav_client.upload_to(buffer, path)
|
||||||
|
|
||||||
# invalidate cache entry
|
# invalidate cache entry
|
||||||
cls._cache.pop(davkey("read_bytes")(path))
|
# explicit slice as there is no "cls" argument
|
||||||
|
del cls._cache[davkey("read_bytes", slice(0, None))(path)]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def write_str(cls, path: str, content: str, encoding="utf-8") -> None:
|
async def write_str(cls, path: str, content: str, encoding="utf-8") -> None:
|
||||||
|
|
Loading…
Reference in a new issue