Skip to content

Commit 32422d1

Browse files
bctiemannjeremystretch
authored andcommitted
Don't cache CACHE_KEY_CATALOG_ERROR if ISOLATED_DEPLOYMENT is True
1 parent 571f604 commit 32422d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/core/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def get_cached_plugins(self, request):
594594
catalog_plugins_error = cache.get(self.CACHE_KEY_CATALOG_ERROR, default=False)
595595
if not catalog_plugins_error:
596596
catalog_plugins = get_catalog_plugins()
597-
if not catalog_plugins:
597+
if not catalog_plugins and not settings.ISOLATED_DEPLOYMENT:
598598
# Cache for 5 minutes to avoid spamming connection
599599
cache.set(self.CACHE_KEY_CATALOG_ERROR, True, 300)
600600
messages.warning(request, _("Plugins catalog could not be loaded"))

0 commit comments

Comments
 (0)