From f4cadd9227db9211abfb665ebaac24c6c06d16cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Tue, 7 Nov 2023 11:26:13 +0100 Subject: [PATCH] bugfix/Remove caching at the function getOrCreateMetadata --- .../code/metadata/counterparties/MapperCounterparties.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/obp-api/src/main/scala/code/metadata/counterparties/MapperCounterparties.scala b/obp-api/src/main/scala/code/metadata/counterparties/MapperCounterparties.scala index 62e3659643..f6eff475e8 100644 --- a/obp-api/src/main/scala/code/metadata/counterparties/MapperCounterparties.scala +++ b/obp-api/src/main/scala/code/metadata/counterparties/MapperCounterparties.scala @@ -26,7 +26,8 @@ import scala.concurrent.duration._ // They are relevant somehow, but they are different data for now. Both data can be get by the following `MapperCounterparties` object. object MapperCounterparties extends Counterparties with MdcLoggable { - val MetadataTTL = getSecondsCache("getOrCreateMetadata") + // TODO Rewrite caching function + val MetadataTTL = 0 // getSecondsCache("getOrCreateMetadata") override def getOrCreateMetadata(bankId: BankId, accountId: AccountId, counterpartyId: String, counterpartyName:String): Box[CounterpartyMetadata] = { /**