Index: /applications/editors/josm/plugins/imagerycache/build.xml
===================================================================
--- /applications/editors/josm/plugins/imagerycache/build.xml	(revision 31303)
+++ /applications/editors/josm/plugins/imagerycache/build.xml	(revision 31304)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="[JOSM_ImageryCache]: correct database cleaning, at last"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="8425"/>
+    <property name="plugin.main.version" value="8526"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java
===================================================================
--- /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java	(revision 31303)
+++ /applications/editors/josm/plugins/imagerycache/src/org/openstreetmap/josm/plugins/imagerycache/ImageryCachePlugin.java	(revision 31304)
@@ -7,4 +7,6 @@
 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
 import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
+import org.openstreetmap.josm.data.imagery.CachedTileLoaderFactory;
+import org.openstreetmap.josm.data.imagery.TileLoaderFactory;
 import org.openstreetmap.josm.gui.layer.TMSLayer;
 import org.openstreetmap.josm.plugins.Plugin;
@@ -16,8 +18,8 @@
 public class ImageryCachePlugin extends Plugin {
     
-    TMSLayer.TileLoaderFactory factory = new TMSLayer.TileLoaderFactory() {
+    TileLoaderFactory factory = new TileLoaderFactory() {
         @Override
         public OsmTileLoader makeTileLoader(TileLoaderListener listener) {
-            String cachePath = TMSLayer.PROP_TILECACHE_DIR.get();
+            String cachePath = CachedTileLoaderFactory.PROP_TILECACHE_DIR.get();
             try {
                 new File(cachePath).mkdirs();
@@ -41,5 +43,5 @@
     public ImageryCachePlugin(PluginInformation info) {
         super(info);
-        TMSLayer.setCustomTileLoaderFactory(factory);
+        TMSLayer.setTileLoaderFactory(factory);
     }
     
