private static void setVisitDate(final Collection<String> geocodes, final long visitedDate) {
        if (geocodes.isEmpty()) {
            return;
        }

        withAccessLock(() -> {


            init();

            database.beginTransaction();
            try {
                final SQLiteStatement setVisit = PreparedStatement.UPDATE_VISIT_DATE.getStatement();
                for (final String geocode : geocodes) {
                    setVisit.bindLong(1, visitedDate);
                    setVisit.bindString(2, geocode);
                    setVisit.execute();
                }
                database.setTransactionSuccessful();
            } finally {
                database.endTransaction();
            }
        });
    }
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