diff options
-rw-r--r-- | main/src/cgeo/geocaching/cgData.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java index 7562104..0363d33 100644 --- a/main/src/cgeo/geocaching/cgData.java +++ b/main/src/cgeo/geocaching/cgData.java @@ -40,6 +40,7 @@ import java.util.regex.Pattern; public class cgData { + // TODO: remove plural public enum StorageLocations { HEAP, CACHE, @@ -1251,6 +1252,10 @@ public class cgData { return false; } + // remember this cache in the caches cache. it is highly likely that we will need it in a few moments and + // this way we also remove any stale instance from the caches cache + cgeoapplication.getInstance().putCacheInCache(cache); + ContentValues values = new ContentValues(); if (cache.getUpdated() == 0) { |