Merge branch 'maintenance' into devel

This commit is contained in:
Gina Häußge committed 2017-10-17 11:07:02 +02:00
commit 880124bbe0
1 file changed
+3
+3
View File
@@ -29,6 +29,8 @@ import threading
_file_cache = dict()
_file_cache_mutex = threading.RLock()
_FILES_DATA_VERSION = 1
def _clear_file_cache():
with _file_cache_mutex:
_file_cache.clear()
@@ -71,6 +73,7 @@ def _create_etag(path, filter, recursive, lm=None):
return None
hash = hashlib.sha1()
hash.update(str(_FILES_DATA_VERSION))
hash.update(str(lm))
hash.update(str(filter))
hash.update(str(recursive))