Skip to content

Commit a51bda8

Browse files
authored
Merge pull request #363 from OpenGeoscience/redis-cache
Use redis for raster tile caching
2 parents 72c5ef1 + c86657d commit a51bda8

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
"django-extensions==4.1",
2424
"django-filter==25.2",
2525
"django-guardian==3.3.0",
26-
"django-large-image==0.10.2",
26+
"django-large-image==0.10.3",
2727
"django-oauth-toolkit==3.2.0",
2828
"django-resonant-settings[allauth,celery]==0.48.1",
2929
"django-resonant-utils[allauth,s3_storage]==0.19.0",

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)