From ccf5dad24a8f8ff16bd86dcd44013f7d8043ba26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Tue, 23 Apr 2024 18:36:09 +0200 Subject: [PATCH] Badges: add the cache config for fedbadges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- .../openshift-apps/badges/templates/fm-fedbadges.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/badges/templates/fm-fedbadges.toml b/roles/openshift-apps/badges/templates/fm-fedbadges.toml index d759db4014..20194a3e48 100644 --- a/roles/openshift-apps/badges/templates/fm-fedbadges.toml +++ b/roles/openshift-apps/badges/templates/fm-fedbadges.toml @@ -64,6 +64,15 @@ distgit_hostname = "src{{ env_suffix }}.fedoraproject.org" id_provider_hostname = "id{{ env_suffix }}.fedoraproject.org" fasjson_base_url = "https://fasjson{{ env_suffix }}.fedoraproject.org" +# Cache configuation +[consumer_config.cache] +backend = "dogpile.cache.pymemcache" +expiration_time = 600 +[consumer_config.cache.arguments] +url = "memcached01:11211" +distributed_lock = true +lock_timeout = 5 + # This is a set of data that tells our consumer what Open Badges Issuer # should be kept as the issuer of all the badges we create. [consumer_config.badge_issuer] @@ -205,5 +214,5 @@ propagate = false handlers = ["console"] [log_config.root] -level = "ERROR" +level = "WARNING" handlers = ["console"]