We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37b9575 commit 8680d23Copy full SHA for 8680d23
simple_health_check/checks/caches.py
@@ -1,6 +1,7 @@
1
from typing import Optional
2
3
from django.core.cache import CacheKeyWarning, caches
4
+from django.conf import settings
5
6
from . import BaseHealthCheck
7
from ..exceptions import HealthCheckError
@@ -15,7 +16,7 @@ def check(self):
15
16
if self.alias:
17
caches[self.alias]
18
try:
- for alias in caches:
19
+ for alias in getattr(settings, 'CACHES', {}).keys():
20
if self.alias and alias != self.alias:
21
continue
22
0 commit comments