Skip to content

Commit

Permalink
fix: add key for memoized_func
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed May 16, 2024
1 parent 56e1f6c commit d3fabff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def can_view_courses_wrapper(*args, **kwargs):
from superset.utils.cache import memoized_func

kwargs["cache_timeout"] = {{ SUPERSET_USER_PERMISSIONS_CACHE_TIMEOUT }}
return memoized_func()(can_view_courses)(*args, **kwargs)
return memoized_func("{username}:{field_name}")(can_view_courses)(*args, **kwargs)


JINJA_CONTEXT_ADDONS = {
Expand Down

0 comments on commit d3fabff

Please sign in to comment.