Do not shutdown caches (some parts of the app keep their references)

This commit is contained in:
Reinhard Pointner 2016-03-11 17:34:47 +00:00
parent 6e839ee5c6
commit 24a2a6044e
1 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import java.nio.file.StandardOpenOption;
import java.util.Scanner; import java.util.Scanner;
import java.util.logging.Level; import java.util.logging.Level;
import net.filebot.Settings.ApplicationFolder;
import net.sf.ehcache.CacheException; import net.sf.ehcache.CacheException;
import net.sf.ehcache.config.Configuration; import net.sf.ehcache.config.Configuration;
import net.sf.ehcache.config.DiskStoreConfiguration; import net.sf.ehcache.config.DiskStoreConfiguration;
@ -25,8 +26,8 @@ public class CacheManager {
return instance; return instance;
} }
private final net.sf.ehcache.CacheManager manager;
private final File diskStore; private final File diskStore;
private final net.sf.ehcache.CacheManager manager;
public CacheManager() { public CacheManager() {
try { try {
@ -46,7 +47,6 @@ public class CacheManager {
public synchronized void clearAll() { public synchronized void clearAll() {
manager.clearAll(); manager.clearAll();
manager.removeAllCaches();
// clear all caches that have not been added yet // clear all caches that have not been added yet
clearDiskStore(diskStore); clearDiskStore(diskStore);