Merge pull request #1080 from flowln/eternal_cache

Never invalidate libraries cache entries by time elapsed
This commit is contained in:
flow
2022-08-31 18:28:07 -03:00
committed by Sefa Eyeoglu
parent c89f8b4657
commit 5e767a91d9
8 changed files with 36 additions and 12 deletions

View File

@ -88,6 +88,9 @@ QList<NetAction::Ptr> Library::getDownloads(
options |= Net::Download::Option::AcceptLocalFiles;
}
// Don't add a time limit for the libraries cache entry validity
options |= Net::Download::Option::MakeEternal;
if(sha1.size())
{
auto rawSha1 = QByteArray::fromHex(sha1.toLatin1());