Add cache to default settings

This commit is contained in:
shortcutme 2018-09-17 15:25:17 +02:00
parent 6c610c509f
commit 577761a6bb
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -98,7 +98,7 @@ class Site(object):
self.bad_files[inner_path] = min(self.bad_files[inner_path], 20) self.bad_files[inner_path] = min(self.bad_files[inner_path], 20)
else: else:
self.settings = { self.settings = {
"own": False, "serving": True, "permissions": [], "own": False, "serving": True, "permissions": [], "cache": {"bad_files": {}}, "size_files_optional": 0,
"added": int(time.time()), "optional_downloaded": 0, "size_optional": 0 "added": int(time.time()), "optional_downloaded": 0, "size_optional": 0
} # Default } # Default
if config.download_optional == "auto": if config.download_optional == "auto":