aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/HttpMetaCache.cpp
diff options
context:
space:
mode:
authorSergio <42090377+SSUPII@users.noreply.github.com>2022-10-18 15:39:29 +0200
committerGitHub <noreply@github.com>2022-10-18 15:39:29 +0200
commitf3b29d67f42725c51c3b4e920786bd7be9b09000 (patch)
tree29e71a1977fc57d3769769040087df7bb10e5904 /launcher/net/HttpMetaCache.cpp
parent2ee5c6b2a18d12ef21417df2bd5fb83feff2ca10 (diff)
parent3405fd91c6e116bc0af69a8be48c95e447306b52 (diff)
downloadPrismLauncher-f3b29d67f42725c51c3b4e920786bd7be9b09000.tar.gz
PrismLauncher-f3b29d67f42725c51c3b4e920786bd7be9b09000.tar.bz2
PrismLauncher-f3b29d67f42725c51c3b4e920786bd7be9b09000.zip
Merge branch 'PrismLauncher:develop' into develop
Diffstat (limited to 'launcher/net/HttpMetaCache.cpp')
-rw-r--r--launcher/net/HttpMetaCache.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/launcher/net/HttpMetaCache.cpp b/launcher/net/HttpMetaCache.cpp
index 9606ddb6..42198b71 100644
--- a/launcher/net/HttpMetaCache.cpp
+++ b/launcher/net/HttpMetaCache.cpp
@@ -162,6 +162,18 @@ auto HttpMetaCache::evictEntry(MetaEntryPtr entry) -> bool
return true;
}
+void HttpMetaCache::evictAll()
+{
+ for (QString& base : m_entries.keys()) {
+ EntryMap& map = m_entries[base];
+ qDebug() << "Evicting base" << base;
+ for (MetaEntryPtr entry : map.entry_list) {
+ if (!evictEntry(entry))
+ qWarning() << "Unexpected missing cache entry" << entry->basePath;
+ }
+ }
+}
+
auto HttpMetaCache::staleEntry(QString base, QString resource_path) -> MetaEntryPtr
{
auto foo = new MetaEntry();