Skip to content

Commit

Permalink
Merge pull request #816 from openedx/cag/cache-key
Browse files Browse the repository at this point in the history
fix: add key for memoized_func
  • Loading branch information
Cristhian Garcia authored May 22, 2024
2 parents ba717cf + d3fabff commit 188ac29
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 188ac29

Please sign in to comment.