Skip to content

Commit

Permalink
rebuild use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed-XCF committed Apr 25, 2023
1 parent 574ce77 commit 41294a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ def wrapper(*args, **kwargs):
def use_cache(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
token = cache_disable.set(False)
cache_disable.set(False)
try:
return func(*args, **kwargs)
finally:
cache_disable.reset(token)
cache_disable.set(_default_cache_disable)

return wrapper

0 comments on commit 41294a7

Please sign in to comment.