Skip to content

Commit 6b18400

Browse files
committed
feat: Use redis for cache backend
1 parent 42350ee commit 6b18400

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

uvdat/settings/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@
157157
}
158158
}
159159

160+
# Large image cache with Redis
161+
LARGE_IMAGE_CACHE_BACKEND = 'redis'
162+
LARGE_IMAGE_CACHE_REDIS_URL = env.url("DJANGO_REDIS_URL").geturl()
163+
160164
UVDAT_WEB_URL: str = env.url("DJANGO_UVDAT_WEB_URL").geturl()
161165
UVDAT_ENABLE_FLOOD_SIMULATION: bool = env.bool("DJANGO_UVDAT_ENABLE_FLOOD_SIMULATION", default=True)
162166
UVDAT_ENABLE_FLOOD_NETWORK_FAILURE: bool = env.bool(

0 commit comments

Comments
 (0)