Skip to content

Commit

Permalink
Set DummyCache alternative.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Sep 10, 2024
1 parent 47917d1 commit c60fcd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions itassets/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
"LOCATION": REDIS_CACHE_HOST,
}
}
else:
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
}
}
API_RESPONSE_CACHE_SECONDS = env("API_RESPONSE_CACHE_SECONDS", 60)
CACHE_MIDDLEWARE_SECONDS = env("CACHE_MIDDLEWARE_SECONDS", 60)

Expand Down

0 comments on commit c60fcd2

Please sign in to comment.