From 21552756270d1ff4ad82af0b7f1dcad5c2fb739f Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Fri, 23 Feb 2024 23:08:47 +0100 Subject: [PATCH] Update Haystack search index in cron Signed-off-by: Emmy D'Anello --- tfjm.cron | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tfjm.cron b/tfjm.cron index f54319a..753f0ee 100644 --- a/tfjm.cron +++ b/tfjm.cron @@ -4,6 +4,9 @@ * * * * * cd /code && python manage.py retry_deferred -c 1 0 0 * * * cd /code && python manage.py purge_mail_log 7 -c 1 +# Update search index +*/2 * * * * cd /code && python manage.py update_index &> /dev/null + # Recreate sympa lists */2 * * * * cd /code && python manage.py fix_sympa_lists &> /dev/null