Index: src/org/openstreetmap/josm/io/CacheFiles.java
===================================================================
--- src/org/openstreetmap/josm/io/CacheFiles.java	(revision 1663)
+++ src/org/openstreetmap/josm/io/CacheFiles.java	(working copy)
@@ -57,7 +57,8 @@
        String pref = Main.pref.getPluginsDirFile().getPath();
        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();
            dir_writeable = true;
