From 24a2a6044e1fe8dc70f1b427bd6041e48b2ede5f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 11 Mar 2016 17:34:47 +0000 Subject: [PATCH] Do not shutdown caches (some parts of the app keep their references) --- source/net/filebot/CacheManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/CacheManager.java b/source/net/filebot/CacheManager.java index 51f9318b..b9c9c5dd 100644 --- a/source/net/filebot/CacheManager.java +++ b/source/net/filebot/CacheManager.java @@ -13,6 +13,7 @@ import java.nio.file.StandardOpenOption; import java.util.Scanner; import java.util.logging.Level; +import net.filebot.Settings.ApplicationFolder; import net.sf.ehcache.CacheException; import net.sf.ehcache.config.Configuration; import net.sf.ehcache.config.DiskStoreConfiguration; @@ -25,8 +26,8 @@ public class CacheManager { return instance; } - private final net.sf.ehcache.CacheManager manager; private final File diskStore; + private final net.sf.ehcache.CacheManager manager; public CacheManager() { try { @@ -46,7 +47,6 @@ public class CacheManager { public synchronized void clearAll() { manager.clearAll(); - manager.removeAllCaches(); // clear all caches that have not been added yet clearDiskStore(diskStore);