[PR #18174] [MERGED] Fixes: #18021 - Clear Swagger/drf-spectacular API cache on startup #15281

Closed
opened 2025-12-30 00:21:03 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18174
Author: @bctiemann
Created: 12/7/2024
Status: Merged
Merged: 12/12/2024
Merged by: @jeremystretch

Base: developHead: 18021-clear-swagger-api-cache-on-startup


📝 Commits (2)

  • c8ecfa0 Clear Swagger API cache on startup
  • 85fed6d Clear entire Redis cache on startup if DEBUG=True

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 netbox/core/apps.py (+6 -0)

📄 Description

Fixes: #18021

Clears the Swagger API schema cache upon startup, ensuring that API endpoint changes by developers are not cached and do not have to be manually refreshed upon every restart of the app.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18174 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 12/7/2024 **Status:** ✅ Merged **Merged:** 12/12/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `18021-clear-swagger-api-cache-on-startup` --- ### 📝 Commits (2) - [`c8ecfa0`](https://github.com/netbox-community/netbox/commit/c8ecfa0b148bfea10e982a3fe4079efec7e92c15) Clear Swagger API cache on startup - [`85fed6d`](https://github.com/netbox-community/netbox/commit/85fed6d25d17008161ca2c47bb38b0b639203f2c) Clear entire Redis cache on startup if DEBUG=True ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/apps.py` (+6 -0) </details> ### 📄 Description ### Fixes: #18021 Clears the Swagger API schema cache upon startup, ensuring that API endpoint changes by developers are not cached and do not have to be manually refreshed upon every restart of the app. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:21:03 +01:00
adam closed this issue 2025-12-30 00:21:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15281