summary refs log tree commit diff
path: root/include/Cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Cache.h')
-rw-r--r--include/Cache.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 0f6e5cd2..3a98fddc 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -35,9 +35,9 @@ public: inline void deleteData(); inline void unmount(); - inline QString memberDbName(const QString &roomid); void removeRoom(const QString &roomid); + void setup(); private: void setNextBatchToken(lmdb::txn &txn, const QString &token); @@ -59,15 +59,11 @@ Cache::unmount() isMounted_ = false; } -inline QString -Cache::memberDbName(const QString &roomid) -{ - return QString("m.%1").arg(roomid); -} - inline void Cache::deleteData() { + qInfo() << "Deleting cache data"; + if (!cacheDirectory_.isEmpty()) QDir(cacheDirectory_).removeRecursively(); }