Merge
This commit is contained in:
commit
020bf28200
|
@ -226,9 +226,11 @@ def lru_cache(maxsize=100, typed=False):
|
||||||
|
|
||||||
def cache_clear():
|
def cache_clear():
|
||||||
"""Clear the cache and cache statistics"""
|
"""Clear the cache and cache statistics"""
|
||||||
nonlocal hits, misses
|
nonlocal hits, misses, root
|
||||||
with lock:
|
with lock:
|
||||||
cache.clear()
|
cache.clear()
|
||||||
|
root = []
|
||||||
|
root[:] = [root, root, None, None]
|
||||||
hits = misses = 0
|
hits = misses = 0
|
||||||
|
|
||||||
wrapper.cache_info = cache_info
|
wrapper.cache_info = cache_info
|
||||||
|
|
Loading…
Reference in New Issue