From ef38b06cc3b474e6f6b55d5930f33859832fcbc5 Mon Sep 17 00:00:00 2001 From: Javier Romero Castro Date: Wed, 17 May 2023 17:02:10 +0200 Subject: [PATCH 1/2] cronjobs: add daily clearing of identity cache * closes https://github.com/inveniosoftware/invenio-app-rdm/issues/2186 --- invenio_app_rdm/config.py | 6 ++++++ 1 file changed, 6 insertions(+) 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).""" From 91c3f0cb5b84afcc4c663a913c99dfd053bb9361 Mon Sep 17 00:00:00 2001 From: Karolina Przerwa Date: Thu, 15 Jun 2023 15:29:24 +0200 Subject: [PATCH 2/2] setup: upgrade invenio-accounts * upgrade invenio-access * upgrade invenio-oauthclient --- setup.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index e1aa7fbf0..c53585a92 100644 --- a/setup.cfg +++ b/setup.cfg @@ -44,10 +44,10 @@ install_requires = invenio-rest>=1.2.8,<1.3.0 invenio-theme>=2.0.0,<3.0.0 # Invenio auth bundle - invenio-access>=1.4.4,<1.5.0 - invenio-accounts>=2.2.0,<2.3.0 + invenio-access>=2.0.0,<3.0.0 + invenio-accounts>=3.0.0,<4.0.0 invenio-oauth2server>=2.0.0,<2.1.0 - invenio-oauthclient>=2.2.0,<3.0.0 + invenio-oauthclient>=3.0.0,<4.0.0 invenio-userprofiles>=2.2.0,<2.3.0 # Invenio metadata bundle invenio-indexer>=2.1.0,<2.2.0