Changeset 10965 in josm for trunk/src/org/openstreetmap/josm/data/cache
- Timestamp:
- 2016-09-05T23:50:16+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java
r10762 r10965 201 201 IDiskCacheAttributes ret; 202 202 removeStaleFiles(cachePath + File.separator + cacheName, USE_BLOCK_CACHE.get() ? "_INDEX_v2" : "_BLOCK_v2"); 203 cacheName = cacheName + (USE_BLOCK_CACHE.get() ? "_BLOCK_v2" : "_INDEX_v2");203 String newCacheName = cacheName + (USE_BLOCK_CACHE.get() ? "_BLOCK_v2" : "_INDEX_v2"); 204 204 205 205 if (USE_BLOCK_CACHE.get()) { … … 211 211 * wants to reduce the file size, (s)he may just go to preferences and there it should be handled (by removing old file) 212 212 */ 213 File diskCacheFile = new File(cachePath + File.separator + cacheName + ".data");213 File diskCacheFile = new File(cachePath + File.separator + newCacheName + ".data"); 214 214 if (diskCacheFile.exists()) { 215 215 blockAttr.setMaxKeySize((int) Math.max(maxDiskObjects, diskCacheFile.length()/1024)); … … 231 231 ret.setDiskPath(cachePath); 232 232 } 233 ret.setCacheName( cacheName);233 ret.setCacheName(newCacheName); 234 234 235 235 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.
