mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 14:25:02 -05:00
Do not shutdown caches (some parts of the app keep their references)
This commit is contained in:
parent
6e839ee5c6
commit
24a2a6044e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user