Skip to content

Commit ec58935

Browse files
committed
Add options to keep exercise api cache pre-warmed
See wger-project/wger#1977
1 parent 736e78f commit ec58935

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

config/prod.env

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,18 @@ SYNC_INGREDIENTS_CELERY=True
6969
# This option controls whether to download ingredients and their images from the
7070
# configured wger instance. When scanning products with the barcode scanner, it is
7171
# possible to dynamically fetch the ingredient if it is not known in the local database.
72-
# Possible values: WGER or None. Requires USE_CELERY to be set to true.
72+
# Possible values: WGER or None (to deactivate). Requires USE_CELERY to be set to true.
7373
DOWNLOAD_INGREDIENTS_FROM=WGER
7474

75+
# Keep exercise api cache warmed up. This will setup a job that will run once
76+
# a day at a random time (this time is selected once when starting the server).
77+
# Requires USE_CELERY to be set to true.
78+
CACHE_API_EXERCISES_CELERY=True
79+
80+
# Whether to force updating the exercise api cache every time the job runs
81+
CACHE_API_EXERCISES_CELERY_FORCE_UPDATE=False
82+
83+
7584
# Whether celery is configured and should be used. Can be left to true with
7685
# this setup but can be deactivated if you are using the app in some other way
7786
USE_CELERY=True

0 commit comments

Comments
 (0)