diff --git a/CHANGES/2250.bugfix b/CHANGES/2250.bugfix new file mode 100644 index 0000000000..133fcef13e --- /dev/null +++ b/CHANGES/2250.bugfix @@ -0,0 +1 @@ +Resolved a memory leak that could occur while making large repeated queries against the API service. diff --git a/pulpcore/app/access_policy.py b/pulpcore/app/access_policy.py index dfa9d57839..8ff6c7b313 100644 --- a/pulpcore/app/access_policy.py +++ b/pulpcore/app/access_policy.py @@ -1,4 +1,3 @@ -from functools import lru_cache from rest_access_policy import AccessPolicy from rest_framework.exceptions import APIException @@ -12,7 +11,6 @@ class AccessPolicyFromDB(AccessPolicy): """ @staticmethod - @lru_cache def get_access_policy(view): """ Retrieves the AccessPolicy from the DB or None if it doesn't exist.