Skip to content

Commit

Permalink
cronjobs: add daily clearing of identity cache
Browse files Browse the repository at this point in the history
* closes #2186
  • Loading branch information
jrcastro2 authored and kpsherva committed Jun 15, 2023
1 parent 2c55280 commit f51fddd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions invenio_app_rdm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,12 @@ class UserPreferencesNotificationsSchema(UserPreferencesSchema):
)
],
},
# Invenio communities provides some caching that has the potential to be never removed,
# therefore, we need a cronjob to ensure that at least once per day we clear the cache
"clear-cache": {
"task": "invenio_communities.tasks.clear_cache",
"schedule": crontab(minute=0, hour=1), # Every day at 01:00 UTC
},
}
"""Scheduled tasks configuration (aka cronjobs)."""

Expand Down

0 comments on commit f51fddd

Please sign in to comment.