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

Fixed #35405 -- Used @cached_property in FieldCacheMixin. #18101

Merged
merged 1 commit into from
May 21, 2024

Commits on May 21, 2024

  1. Fixed #35405 -- Converted get_cache_name into a cached property in Fi…

    …eldCacheMixin.
    
    FieldCacheMixin is used by related fields to track their cached values.
    This work migrates get_cache_name() to be a cached property to optimize
    performance by reducing unnecessary function calls when working with
    related fields, given that its value remains constant.
    
    Co-authored-by: Simon Charette <[email protected]>
    Co-authored-by: Sarah Boyce <[email protected]>
    Co-authored-by: Natalia <[email protected]>
    4 people committed May 21, 2024
    Configuration menu
    Copy the full SHA
    89a9e8c View commit details
    Browse the repository at this point in the history