Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a significant memory leak #4090

Merged
merged 1 commit into from Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/2250.bugfix
@@ -0,0 +1 @@
Resolved a memory leak that could occur while making large repeated queries against the API service.
2 changes: 0 additions & 2 deletions 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

Expand All @@ -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.
Expand Down