@NonNull
    public static StoredList getList(final int id) {
        return withAccessLock(() -> {

            init();
            if (id >= customListIdOffset) {
                final List<StoredList> lists = getStoredLists(id);
                if (!lists.isEmpty()) {
                    return lists.get(0);
                }
            }

            final Resources res = CgeoApplication.getInstance().getResources();
            if (id == PseudoList.ALL_LIST.id) {
                return new StoredList(PseudoList.ALL_LIST.id, res.getString(R.string.list_all_lists), EmojiUtils.NO_EMOJI, true, getAllCachesCount());
            }

            // fall back to standard list in case of invalid list id
            return new StoredList(StoredList.STANDARD_LIST_ID, res.getString(R.string.list_inbox), EmojiUtils.NO_EMOJI, false, (int) PreparedStatement.COUNT_CACHES_ON_STANDARD_LIST.simpleQueryForLong());
        });
    }
Drop caches from the tables they are stored into, as well as the cache files

@param geocodes list of geocodes to drop from cache
main/src/main/java/cgeo/geocaching/storage/DataStore.java