[PR #6716] [MERGED] Closes #6639: Replace django-cacheops with django-redis for caching #13156

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/6716
Author: @jeremystretch
Created: 7/8/2021
Status: Merged
Merged: 7/8/2021
Merged by: @jeremystretch

Base: featureHead: 6639-drop-cacheops


📝 Commits (5)

  • f683f07 Drop caching_config from plugin configuration
  • b6ec1d9 Remove cacheops workarounds & queryset caching metrics
  • d9e27b6 Replace django-cacheops with django-redis
  • 2c023ef Update release check to use django-redis
  • 3e19038 Restore CACHING_REDIS_SKIP_TLS_VERIFY; add CACHE_TIMEOUT usage warning

📊 Changes

16 files changed (+60 additions, -244 deletions)

View changed files

📝 base_requirements.txt (+4 -4)
docs/additional-features/caching.md (+0 -25)
📝 docs/configuration/optional-settings.md (+0 -8)
📝 docs/plugins/development.md (+1 -30)
📝 docs/release-notes/version-3.0.md (+8 -0)
📝 netbox/dcim/signals.py (+0 -2)
📝 netbox/extras/management/commands/renaturalize.py (+0 -4)
📝 netbox/extras/plugins/__init__.py (+0 -5)
📝 netbox/extras/signals.py (+0 -25)
📝 netbox/extras/tests/test_plugins.py (+0 -6)
📝 netbox/netbox/configuration.example.py (+0 -3)
📝 netbox/netbox/releases.py (+6 -7)
📝 netbox/netbox/settings.py (+29 -71)
📝 netbox/netbox/tests/test_releases.py (+6 -38)
📝 netbox/utilities/background_tasks.py (+5 -15)
📝 requirements.txt (+1 -1)

📄 Description

Closes: #6639

  • Removes django-cacheops
  • Configures Django's built-in caching framework to use Redis (via django-redis)
  • Removes the CACHE_TIMEOUT configuration parameter
  • Removes the invalidate management command
  • Removes caching_config support from PluginConfig
  • Removes the cacheops_* Prometheus metrics (previously used for monitoring queryset caching performance)

🔄 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/6716 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/8/2021 **Status:** ✅ Merged **Merged:** 7/8/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `6639-drop-cacheops` --- ### 📝 Commits (5) - [`f683f07`](https://github.com/netbox-community/netbox/commit/f683f0786e58e11eb06057644dca3e828bb42ea4) Drop caching_config from plugin configuration - [`b6ec1d9`](https://github.com/netbox-community/netbox/commit/b6ec1d9aa79b8711895b69b3738974addd7c4267) Remove cacheops workarounds & queryset caching metrics - [`d9e27b6`](https://github.com/netbox-community/netbox/commit/d9e27b6a82298fbf3821fd26a09f6836d5eccada) Replace django-cacheops with django-redis - [`2c023ef`](https://github.com/netbox-community/netbox/commit/2c023ef7a092bf88cf6c9bfd3ef93cef4a23dc51) Update release check to use django-redis - [`3e19038`](https://github.com/netbox-community/netbox/commit/3e19038e069b385a842107bf6a4d00fa38d0d6b8) Restore CACHING_REDIS_SKIP_TLS_VERIFY; add CACHE_TIMEOUT usage warning ### 📊 Changes **16 files changed** (+60 additions, -244 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -4) ➖ `docs/additional-features/caching.md` (+0 -25) 📝 `docs/configuration/optional-settings.md` (+0 -8) 📝 `docs/plugins/development.md` (+1 -30) 📝 `docs/release-notes/version-3.0.md` (+8 -0) 📝 `netbox/dcim/signals.py` (+0 -2) 📝 `netbox/extras/management/commands/renaturalize.py` (+0 -4) 📝 `netbox/extras/plugins/__init__.py` (+0 -5) 📝 `netbox/extras/signals.py` (+0 -25) 📝 `netbox/extras/tests/test_plugins.py` (+0 -6) 📝 `netbox/netbox/configuration.example.py` (+0 -3) 📝 `netbox/netbox/releases.py` (+6 -7) 📝 `netbox/netbox/settings.py` (+29 -71) 📝 `netbox/netbox/tests/test_releases.py` (+6 -38) 📝 `netbox/utilities/background_tasks.py` (+5 -15) 📝 `requirements.txt` (+1 -1) </details> ### 📄 Description ### Closes: #6639 - Removes django-cacheops - Configures Django's built-in caching framework to use Redis (via django-redis) - Removes the `CACHE_TIMEOUT` configuration parameter - Removes the `invalidate` management command - Removes `caching_config` support from PluginConfig - Removes the `cacheops_*` Prometheus metrics (previously used for monitoring queryset caching performance) --- <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:25:43 +01:00
adam closed this issue 2025-12-29 22:25:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13156