download: use new etag cache file and delete the old one, this removes all the old themezer entries.
This commit is contained in:
@@ -1495,9 +1495,10 @@ App::App(const char* argv0) {
|
||||
}
|
||||
|
||||
{
|
||||
// delete old themezer cache as themezer does not exit anymore.
|
||||
SCOPED_TIMESTAMP("themezer cache delete");
|
||||
m_fs->DeleteDirectoryRecursively("/switch/sphaira/cache/themezer");
|
||||
// delete old cached folders/files on startup.
|
||||
SCOPED_TIMESTAMP("old cache delete");
|
||||
m_fs->DeleteDirectoryRecursively("/switch/sphaira/cache/themezer"); // themezer icon/json cache.
|
||||
m_fs->DeleteFile("/switch/sphaira/cache/cache.json"); // old etag cache.
|
||||
}
|
||||
|
||||
if (log_is_init()) {
|
||||
|
||||
@@ -247,7 +247,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
static constexpr inline fs::FsPath JSON_PATH{"/switch/sphaira/cache/cache.json"};
|
||||
static constexpr inline fs::FsPath JSON_PATH{"/switch/sphaira/cache/etag_v2.json"};
|
||||
static constexpr inline const char* ETAG_STR{"etag"};
|
||||
static constexpr inline const char* LAST_MODIFIED_STR{"last-modified"};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user