diff --git a/invenio_app_rdm/config.py b/invenio_app_rdm/config.py index 5516c6022..5ba04ceb0 100644 --- a/invenio_app_rdm/config.py +++ b/invenio_app_rdm/config.py @@ -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)."""