1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
This commit is contained in:
Reinhard Pointner 2012-07-28 12:00:40 +00:00
parent f0be86de35
commit 5dbd5b7c6d
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<!--
Persistent disk store location
-->
<diskStore path="${cache.disk.store.dir}" />
<diskStore path="${ehcache.disk.store.dir}" />
<!--
Mandatory Default Cache configuration. These settings will be applied to caches

View File

@ -338,7 +338,7 @@ public class Main {
final FileLock lock = handle.getChannel().tryLock();
if (lock != null) {
// setup cache dir for ehcache
System.setProperty("cache.disk.store.dir", cache.getAbsolutePath());
System.setProperty("ehcache.disk.store.dir", cache.getAbsolutePath());
// make sure to orderly shutdown cache
Runtime.getRuntime().addShutdownHook(new Thread() {
@ -371,7 +371,7 @@ public class Main {
}
// use cache root itself as fail-safe fallback
System.setProperty("cache.disk.store.dir", cacheRoot.getAbsolutePath());
System.setProperty("ehcache.disk.store.dir", new File(cacheRoot, "default").getAbsolutePath());
}