fix invalidation

This commit is contained in:
Richard van der Hoff 2018-07-27 16:17:17 +01:00
parent f102c05856
commit a8cbce0ced
2 changed files with 42 additions and 2 deletions

View file

@ -528,7 +528,7 @@ class CacheListDescriptor(_CacheDescriptorBase):
deferreds_map[arg] = deferred
key = arg_to_cache_key(arg)
observable = ObservableDeferred(deferred)
cache.set(key, observable)
cache.set(key, observable, callback=invalidate_callback)
def complete_all(res):
# the wrapped function has completed. It returns a