From 8e61096e04784d5b85292db1c67e64c4de9fc2c2 Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Wed, 20 Dec 2023 09:28:40 -0600 Subject: [PATCH] add search index update to cron, weekly --- openstax/settings/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openstax/settings/base.py b/openstax/settings/base.py index a3a198d4a..b811f3341 100644 --- a/openstax/settings/base.py +++ b/openstax/settings/base.py @@ -248,6 +248,8 @@ ('0 0 8 * *', 'django.core.management.call_command', ['update_schools_and_mapbox']), ('0 9 * * *', 'django.core.management.call_command', ['update_opportunities']), ('0 10 * * *', 'django.core.management.call_command', ['update_partners']), + # https://docs.wagtail.org/en/stable/topics/search/indexing.html#the-update-index-command + ('0 4 * * 6', 'django.core.management.call_command', ['update_index']), ] if ENVIRONMENT == 'prod':