diff --git a/libretroshare/src/gxs/rsdataservice.cc b/libretroshare/src/gxs/rsdataservice.cc index fbf8ad9a6..8486e95d0 100644 --- a/libretroshare/src/gxs/rsdataservice.cc +++ b/libretroshare/src/gxs/rsdataservice.cc @@ -1634,10 +1634,14 @@ bool RsDataService::locked_removeGroupEntries(const std::vector& g const RsGxsGroupId& grpId = *vit; mDb->sqlDelete(GRP_TABLE_NAME, KEY_GRP_ID+ "='" + grpId.toStdString() + "'", ""); + + // also remove the group meta from cache. + mGrpMetaDataCache.erase(*vit) ; } ret &= mDb->commitTransaction(); + mGrpMetaDataCache_ContainsAllDatabase = false ; return ret; } uint32_t RsDataService::cacheSize() const { diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index 48adc6b35..7551d68c3 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -63,8 +63,8 @@ static const uint32_t INDEX_AUTHEN_ADMIN = 0x00000040; // admin key //#define GEN_EXCH_DEBUG 1 -#define MSG_CLEANUP_PERIOD 60*59 // 59 minutes -#define INTEGRITY_CHECK_PERIOD 60*31 // 31 minutes +static const uint32_t MSG_CLEANUP_PERIOD = 60*59; // 59 minutes +static const uint32_t INTEGRITY_CHECK_PERIOD = 60*31; // 31 minutes RsGenExchange::RsGenExchange(RsGeneralDataService *gds, RsNetworkExchangeService *ns, RsSerialType *serviceSerialiser, uint16_t servType, RsGixs* gixs,