Skip to content

Commit

Permalink
add search index update to cron, weekly
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Dec 20, 2023
1 parent 0151c27 commit 8e61096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openstax/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 8e61096

Please sign in to comment.