Reenable star import caching.
This commit is contained in:
1 parent
24cfa62c8a
commit
f2d35c3ff1
4 files changed
+6
-7
No files matched your search
+3
-3
@@ -166,9 +166,9 @@ def memoize(func):
|
||||
|
||||
def cache_star_import(func):
|
||||
@time_cache("star_import_cache_validity")
|
||||
def wrapper(evaluator, scope, *args, **kwargs):
|
||||
yield scope # The cache key
|
||||
yield func(evaluator, scope, *args, **kwargs)
|
||||
def wrapper(self):
|
||||
yield self.base # The cache key
|
||||
yield func(self)
|
||||
return wrapper
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user