From 35a1f3c168424693b39d329c2f7b4900c6e510f8 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Thu, 9 Jan 2025 14:04:03 -0500 Subject: [PATCH] Don't cache CACHE_KEY_CATALOG_ERROR if ISOLATED_DEPLOYMENT is True --- netbox/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/core/views.py b/netbox/core/views.py index 713807a8224..83914bceea1 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -594,7 +594,7 @@ def get_cached_plugins(self, request): catalog_plugins_error = cache.get(self.CACHE_KEY_CATALOG_ERROR, default=False) if not catalog_plugins_error: catalog_plugins = get_catalog_plugins() - if not catalog_plugins: + if not catalog_plugins and not settings.ISOLATED_DEPLOYMENT: # Cache for 5 minutes to avoid spamming connection cache.set(self.CACHE_KEY_CATALOG_ERROR, True, 300) messages.warning(request, _("Plugins catalog could not be loaded"))