From f141777d52d79c995207d57299075a10d420aeb5 Mon Sep 17 00:00:00 2001 From: Joachim Date: Wed, 5 Jan 2022 11:54:49 +0100 Subject: [PATCH] Change thumbnail generation strategy --- bookwyrm/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index f2068a16..0fe21232 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -190,6 +190,8 @@ USER_AGENT = f"{agent} (BookWyrm/{VERSION}; +https://{DOMAIN}/)" # Imagekit generated thumbnails ENABLE_THUMBNAIL_GENERATION = env.bool("ENABLE_THUMBNAIL_GENERATION", False) IMAGEKIT_CACHEFILE_DIR = "thumbnails" +#IMAGEKIT_DEFAULT_CACHEFILE_BACKEND = "imagekit.cachefiles.backends.Celery" +IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY = "imagekit.cachefiles.strategies.Optimistic" # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.2/howto/static-files/