diff options
author | saturneric <[email protected]> | 2024-06-02 20:03:59 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-06-02 20:03:59 +0000 |
commit | e7694f9a0729cb88064eda6623c99070f5a46dc0 (patch) | |
tree | 39c5339991212dc4eaf653ec3e016b8daa79fbb7 /src/core/function/CacheManager.cpp | |
parent | fix: cannot show version in about tab (diff) | |
download | GpgFrontend-e7694f9a0729cb88064eda6623c99070f5a46dc0.tar.gz GpgFrontend-e7694f9a0729cb88064eda6623c99070f5a46dc0.zip |
feat: rewrite key list structure and logic
Diffstat (limited to 'src/core/function/CacheManager.cpp')
-rw-r--r-- | src/core/function/CacheManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/function/CacheManager.cpp b/src/core/function/CacheManager.cpp index 719c962d..4dd12f59 100644 --- a/src/core/function/CacheManager.cpp +++ b/src/core/function/CacheManager.cpp @@ -165,9 +165,10 @@ class CacheManager::Impl : public QObject { * */ void slot_flush_cache_storage() { + GF_CORE_LOG_TRACE("write cache to file system..."); + for (const auto& cache : durable_cache_storage_.mirror()) { auto key = get_data_object_key(cache.first); - GF_CORE_LOG_TRACE("save cache into filesystem, key {}", key); GpgFrontend::DataObjectOperator::GetInstance().SaveDataObj( key, QJsonDocument(cache.second)); } |