Don't cache openapi schema when debug/insecure mode is enabled #10478

Closed
opened 2025-12-29 21:32:01 +01:00 by adam · 1 comment
Owner

Originally created by @prryplatypus on GitHub (Nov 15, 2024).

NetBox version

v4.1.4

Feature type

Change to existing functionality

Triage priority

N/A

Proposed functionality

When debug mode or Django --insecure mode is enabled, the OpenAPI schema shouldn't be cached (or the cache should be busted upon reload/restart).

Use case

When developing plugins, it is common that the schema is changed. Having to bust this cache manually every time a change is made in development is additional unnecessary work the the developer, which hinders DX and in cases confuses the developer wondering why changes aren't showing.

Database changes

No response

External dependencies

No response

Originally created by @prryplatypus on GitHub (Nov 15, 2024). ### NetBox version v4.1.4 ### Feature type Change to existing functionality ### Triage priority N/A ### Proposed functionality When debug mode or Django `--insecure` mode is enabled, the OpenAPI schema shouldn't be cached (or the cache should be busted upon reload/restart). ### Use case When developing plugins, it is common that the schema is changed. Having to bust this cache manually every time a change is made in development is additional unnecessary work the the developer, which hinders DX and in cases confuses the developer wondering why changes aren't showing. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:32:01 +01:00
adam closed this issue 2025-12-29 21:32:01 +01:00
Author
Owner

@prryplatypus commented on GitHub (Nov 15, 2024):

Will not be needed when #18021 is fixed

@prryplatypus commented on GitHub (Nov 15, 2024): Will not be needed when #18021 is fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10478