Closes #21300: Cache model-specific custom field lookups for the duration of a request #436

Closed
opened 2026-04-05 16:32:41 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 1/30/2026

Closes: #21300

  • Cache the results of the get_for_model() method on CustomFieldManager (same approach as #21259)
  • Replace various calls to CustomField.objects.filter(object_types=object_type) with get_for_model() to enable caching
*Originally created by @jeremystretch on 1/30/2026* ### Closes: #21300 - Cache the results of the `get_for_model()` method on CustomFieldManager (same approach as #21259) - Replace various calls to `CustomField.objects.filter(object_types=object_type)` with `get_for_model()` to enable caching
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#436