diff --git a/api/ovdashboard_api/core/dav/webdav.py b/api/ovdashboard_api/core/dav/webdav.py index c195674..c84f56b 100644 --- a/api/ovdashboard_api/core/dav/webdav.py +++ b/api/ovdashboard_api/core/dav/webdav.py @@ -89,7 +89,8 @@ class WebDAV: cls._webdav_client.upload_to(buffer, path) # 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 async def write_str(cls, path: str, content: str, encoding="utf-8") -> None: