Closes #21259: Cache ObjectType results for the duration of a request #472

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

Originally created by @jeremystretch on 1/23/2026

Closes: #21259

  • Introduce the object_types_cache context variable to
  • Extend the get_for_model() method on ObjectTypeManager to check & populate the cache when resolving ObjectTypes
  • Extend the event_tracking() context manager to initialize and clear object_types_cache for each request
*Originally created by @jeremystretch on 1/23/2026* ### Closes: #21259 - Introduce the `object_types_cache` context variable to - Extend the `get_for_model()` method on ObjectTypeManager to check & populate the cache when resolving ObjectTypes - Extend the `event_tracking()` context manager to initialize and clear `object_types_cache` for each request
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#472