From 826a9cdf08e568026e3a2d31afc960ce62939cdb Mon Sep 17 00:00:00 2001 From: Laurent Deketelaere Date: Fri, 7 Jun 2024 11:39:55 +0200 Subject: [PATCH] fix: Disable cache on `/kbo-organizations/*` --- config/dispatcher/dispatcher.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index b53892a..c8f984c 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -227,8 +227,9 @@ defmodule Dispatcher do Proxy.forward conn, path, "http://cache/decision-activities/" end + # There is currently no logic to invalidate the kboOrganization cache when wegwijse updates the content match "/kbo-organizations/*path", %{ accept: [:any], layer: :api} do - Proxy.forward conn, path, "http://cache/kbo-organizations/" + Proxy.forward conn, path, "http://resource/kbo-organizations/" end ###############