Commit ab24a357 authored by Jakub Ružička's avatar Jakub Ružička
Browse files

cache: fix cache invalidation

cache.get returned incorrect value immediately after invalidating cache
entry.
parent 05bd92f6
...@@ -91,6 +91,9 @@ class ProjectCache: ...@@ -91,6 +91,9 @@ class ProjectCache:
if not entries: if not entries:
return None return None
paths = list(map(entry2path_valid, entries)) paths = list(map(entry2path_valid, entries))
if None in paths:
# invalid entry
return None
return paths return paths
def delete(self, cache_name, key): def delete(self, cache_name, key):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment