[PR #3080] [MERGED] change cacheing to use cacheops #12497

Closed
opened 2025-12-29 22:21:55 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3080
Author: @lampwins
Created: 4/17/2019
Status: Merged
Merged: 4/19/2019
Merged by: @lampwins

Base: develop-2.6Head: 2647-cacheops


📝 Commits (2)

  • 2580b02 change cacheing to use cacheops
  • c7778db fix timeout expression

📊 Changes

12 files changed (+32 additions, -78 deletions)

View changed files

📝 base_requirements.txt (+4 -4)
📝 netbox/dcim/views.py (+0 -20)
📝 netbox/extras/views.py (+0 -7)
📝 netbox/ipam/views.py (+0 -11)
📝 netbox/netbox/configuration.example.py (+2 -10)
📝 netbox/netbox/settings.py (+25 -15)
📝 netbox/netbox/views.py (+0 -3)
📝 netbox/secrets/views.py (+0 -1)
📝 netbox/tenancy/views.py (+0 -1)
📝 netbox/utilities/views.py (+0 -2)
📝 netbox/virtualization/views.py (+0 -3)
📝 requirements.txt (+1 -1)

📄 Description

Fixes: #2647

Changed caching mechanism to use django-cacheops which has native support for queryset caching and automatic invalidation built in.


🔄 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/3080 **Author:** [@lampwins](https://github.com/lampwins) **Created:** 4/17/2019 **Status:** ✅ Merged **Merged:** 4/19/2019 **Merged by:** [@lampwins](https://github.com/lampwins) **Base:** `develop-2.6` ← **Head:** `2647-cacheops` --- ### 📝 Commits (2) - [`2580b02`](https://github.com/netbox-community/netbox/commit/2580b026fe0847299641417b79005ba0aa44b467) change cacheing to use cacheops - [`c7778db`](https://github.com/netbox-community/netbox/commit/c7778db7f21b72e7a682fcf969440577a9003fcf) fix timeout expression ### 📊 Changes **12 files changed** (+32 additions, -78 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -4) 📝 `netbox/dcim/views.py` (+0 -20) 📝 `netbox/extras/views.py` (+0 -7) 📝 `netbox/ipam/views.py` (+0 -11) 📝 `netbox/netbox/configuration.example.py` (+2 -10) 📝 `netbox/netbox/settings.py` (+25 -15) 📝 `netbox/netbox/views.py` (+0 -3) 📝 `netbox/secrets/views.py` (+0 -1) 📝 `netbox/tenancy/views.py` (+0 -1) 📝 `netbox/utilities/views.py` (+0 -2) 📝 `netbox/virtualization/views.py` (+0 -3) 📝 `requirements.txt` (+1 -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 opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #2647 Changed caching mechanism to use `django-cacheops` which has native support for queryset caching and automatic invalidation built in. --- <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 22:21:55 +01:00
adam closed this issue 2025-12-29 22:21:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12497