mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 22:28:26 +02:00
Removed django-cacheops dependency
This commit is contained in:
parent
9a8de804cf
commit
3a94462bd6
9 changed files with 12 additions and 29 deletions
|
@ -92,7 +92,6 @@ THIRD_PARTY_APPS = (
|
|||
"rest_auth.registration",
|
||||
"dynamic_preferences",
|
||||
"django_filters",
|
||||
"cacheops",
|
||||
"django_cleanup",
|
||||
"versatileimagefield",
|
||||
)
|
||||
|
@ -421,15 +420,6 @@ PROTECT_FILES_PATH = env("PROTECT_FILES_PATH", default="/_protected")
|
|||
# use this setting to tweak for how long you want to cache
|
||||
# musicbrainz results. (value is in seconds)
|
||||
MUSICBRAINZ_CACHE_DURATION = env.int("MUSICBRAINZ_CACHE_DURATION", default=300)
|
||||
CACHEOPS_REDIS = env("CACHE_URL", default=CACHE_DEFAULT)
|
||||
CACHEOPS_ENABLED = env.bool("CACHEOPS_ENABLED", default=True)
|
||||
CACHEOPS = {
|
||||
"music.artist": {"ops": "all", "timeout": 60 * 60},
|
||||
"music.album": {"ops": "all", "timeout": 60 * 60},
|
||||
"music.track": {"ops": "all", "timeout": 60 * 60},
|
||||
"music.trackfile": {"ops": "all", "timeout": 60 * 60},
|
||||
"taggit.tag": {"ops": "all", "timeout": 60 * 60},
|
||||
}
|
||||
|
||||
# Custom Admin URL, use {% url 'admin:index' %}
|
||||
ADMIN_URL = env("DJANGO_ADMIN_URL", default="^api/admin/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue