[PR #15897] [MERGED] Added caching on /api/schema/ endpoint #14712

Closed
opened 2025-12-29 23:26:13 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15897
Author: @mulmat
Created: 4/30/2024
Status: Merged
Merged: 5/1/2024
Merged by: @jeremystretch

Base: developHead: 15894-cache-api-schema-endpoint


📝 Commits (1)

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 netbox/netbox/urls.py (+8 -1)

📄 Description

Fixes: #15894

Re-added caching on api schema generation endpoint, similar to what was implemented before in 257c0afdb5. Also added netbox version in cache-key in order to bust cache immediately when upgrading netbox.


🔄 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/15897 **Author:** [@mulmat](https://github.com/mulmat) **Created:** 4/30/2024 **Status:** ✅ Merged **Merged:** 5/1/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `15894-cache-api-schema-endpoint` --- ### 📝 Commits (1) - [`ea58750`](https://github.com/netbox-community/netbox/commit/ea58750f3e8faa247dbce4859b65fbb79d52641c) Added caching on /api/schema/ endpoint (closes #15894) ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/urls.py` (+8 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #15894 Re-added caching on api schema generation endpoint, similar to what was implemented before in https://github.com/netbox-community/netbox/commit/257c0afdb5b62c7ea84159d2b46d53ce5a43f3a3. Also added netbox version in cache-key in order to bust cache immediately when upgrading netbox. --- <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-29 23:26:13 +01:00
adam closed this issue 2025-12-29 23:26:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14712