mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
default for filesystem_cache_folder is filesystem_folder
This commit is contained in:
parent
b3d0c16407
commit
2bb2d6385b
4 changed files with 7 additions and 4 deletions
|
@ -280,7 +280,7 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
|
|||
"help": "path where collections are stored",
|
||||
"type": filepath}),
|
||||
("filesystem_cache_folder", {
|
||||
"value": "/var/lib/radicale/collections",
|
||||
"value": "",
|
||||
"help": "path where cache of collections is stored in case of use_cache_subfolder_* options are active",
|
||||
"type": filepath}),
|
||||
("use_cache_subfolder_for_item", {
|
||||
|
|
|
@ -98,7 +98,10 @@ class StorageBase(storage.BaseStorage):
|
|||
return os.path.join(self._filesystem_folder, "collection-root")
|
||||
|
||||
def _get_collection_cache_folder(self) -> str:
|
||||
return os.path.join(self._filesystem_cache_folder, "collection-cache")
|
||||
if self._filesystem_cache_folder:
|
||||
return os.path.join(self._filesystem_cache_folder, "collection-cache")
|
||||
else:
|
||||
return os.path.join(self._filesystem_folder, "collection-cache")
|
||||
|
||||
def _get_collection_cache_subfolder(self, path, folder, subfolder) -> str:
|
||||
if (self._use_cache_subfolder_for_item is True) and (subfolder == "item"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue