From 8a24395f129be1ec5146b9b9df479bca1c22d73c Mon Sep 17 00:00:00 2001
From: juanf <juanf@bsse-bs-dock-dhcp-312.ethz.ch>
Date: Wed, 16 May 2018 10:13:36 +0200
Subject: [PATCH] SSDM-5725 : Remove init cache

---
 .../1/dss/reporting-plugins/eln-lims-api/script.py        | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py
index ffa3e1657f7..15cb416d85c 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py
@@ -61,9 +61,7 @@ from ch.ethz.sis.openbis.generic.asapi.v3.dto.sample.id import SamplePermId
 from ch.ethz.sis.openbis.generic.asapi.v3.dto.experiment.id import ExperimentIdentifier;
 from ch.ethz.sis.openbis.generic.server.sharedapi.v3.json import GenericObjectMapper;
 from ch.systemsx.cisd.openbis.dss.generic.server import DataStoreServer
-from ch.systemsx.cisd.common.shared.basic.string import StringUtils
-
-from ch.ethz.sis import PersistentKeyValueStore 
+from ch.systemsx.cisd.common.shared.basic.string import StringUtils 
 #from ch.systemsx.cisd.common.ssl import SslCertificateHelper;
 
 #Plasmapper server used
@@ -199,9 +197,7 @@ def process(tr, parameters, tableBuilder):
 	tr.setUserId(userId);
 	
 	if method == "init":
-		if PersistentKeyValueStore.get("$isELNInitDone") != True:
-			isOk = init(tr, parameters, tableBuilder);
-			PersistentKeyValueStore.put("$isELNInitDone", True);
+		isOk = init(tr, parameters, tableBuilder);
 	if method == "isFileAuthUser":
 		result = isFileAuthUser(tr, parameters, tableBuilder);
 		isOk = True;
-- 
GitLab