Index: trunk/src/org/openstreetmap/josm/io/CacheFiles.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/CacheFiles.java	(revision 1704)
+++ trunk/src/org/openstreetmap/josm/io/CacheFiles.java	(revision 1705)
@@ -58,5 +58,6 @@
        boolean dir_writeable;
        this.ident = ident;
-       this.dir = new File(pref + "/" + ident + "/cache/");
+       String cacheDir = Main.pref.get("cache." + ident + "." + "path", pref + "/" + ident + "/cache/");
+       this.dir = new File(cacheDir);
        try {
            this.dir.mkdirs();
