Actions
Bug #34093
closedAuthorizer cache loads all permitted resources to memory
Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
-
Description
The cache saves calculating the scope for the collection, but loads all records when calling `.include?` instead of checking for the existence of the specific record within the scope
def collection_cache_lookup(subject, permission) collection = @cache[subject.class.to_s][permission] ||= find_collection(subject.class, :permission => permission) collection.include?(subject) end
Updated by The Foreman Bot almost 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8972 added
Updated by Tomer Brisker almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|700f3a69bebe0753092a9db1fbe6a03eeb27cf0f.
Updated by Tomer Brisker almost 3 years ago
- Fixed in Releases 3.1.0 added
- Fixed in Releases deleted (
3.2.0)
Updated by Lukas Zapletal over 2 years ago
- Related to Bug #33585: Puma memory usage after update to 2.5 added
Actions