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 committed May 30, 2023
1 parent 342c9b0 commit ef38b06
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 @@ -341,6 +341,12 @@ def files_rest_permission_factory(obj, action):
)
],
},
# 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 ef38b06

Please sign in to comment.