Skip to content
Snippets Groups Projects
Verified Commit 677ddf35 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DOC: code comment in JCSCacheHelper

parent 52c581ea
Branches
Tags
No related merge requests found
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
*/ */
package caosdb.server.caching; package caosdb.server.caching;
import caosdb.server.CaosDBServer;
import caosdb.server.ServerProperties;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
...@@ -36,6 +34,8 @@ import org.apache.commons.jcs.JCS; ...@@ -36,6 +34,8 @@ import org.apache.commons.jcs.JCS;
import org.apache.commons.jcs.access.behavior.ICacheAccess; import org.apache.commons.jcs.access.behavior.ICacheAccess;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import caosdb.server.CaosDBServer;
import caosdb.server.ServerProperties;
/** /**
* A CacheHelper implementation which is configured statically via the {@link * A CacheHelper implementation which is configured statically via the {@link
...@@ -88,6 +88,8 @@ public class JCSCacheHelper implements CacheHelper { ...@@ -88,6 +88,8 @@ public class JCSCacheHelper implements CacheHelper {
} }
logger.info("Configuring JCS Caching with {}", config); logger.info("Configuring JCS Caching with {}", config);
} }
// If the JCS config is updated/reset, it has to be shut down before.
JCS.shutdown(); JCS.shutdown();
JCS.setConfigProperties(config); JCS.setConfigProperties(config);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment