shorten package cache time

pull/1154/head
Luke Pulverenti 8 years ago
parent 8732a60345
commit 636943be4b

@ -277,15 +277,7 @@ namespace Emby.Server.Implementations.Updates
private TimeSpan GetCacheLength() private TimeSpan GetCacheLength()
{ {
switch (GetSystemUpdateLevel())
{
case PackageVersionClass.Beta:
return TimeSpan.FromMinutes(30);
case PackageVersionClass.Dev:
return TimeSpan.FromMinutes(3); return TimeSpan.FromMinutes(3);
default:
return TimeSpan.FromHours(24);
}
} }
protected PackageInfo[] FilterPackages(List<PackageInfo> packages) protected PackageInfo[] FilterPackages(List<PackageInfo> packages)

Loading…
Cancel
Save