File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,7 @@ def _cached(func):
76
76
@wraps (func )
77
77
def wrapper (* args , ** kwargs ):
78
78
# skip the first arg because it will be the class itself
79
- function_cache_key = utils .get_function_cache_key (
80
- func_name , args [1 :], kwargs
81
- )
79
+ function_cache_key = utils .get_function_cache_key (func_name , args [1 :], kwargs )
82
80
cache_key = utils .get_hashed_cache_key (function_cache_key )
83
81
84
82
try :
@@ -115,7 +113,7 @@ def invalidate(*args, **kwargs):
115
113
:param kwargs: The kwargs passed into the original function.
116
114
:rtype: None
117
115
"""
118
- function_cache_key = utils .get_function_cache_key (func_name , args , kwargs )
116
+ function_cache_key = utils .get_function_cache_key (func_name , args [ 1 :] , kwargs )
119
117
cache_key = utils .get_hashed_cache_key (function_cache_key )
120
118
cache .delete (cache_key )
121
119
You can’t perform that action at this time.
0 commit comments