mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
shorten package cache time
This commit is contained in:
parent
8732a60345
commit
636943be4b
@ -277,15 +277,7 @@ namespace Emby.Server.Implementations.Updates
|
||||
|
||||
private TimeSpan GetCacheLength()
|
||||
{
|
||||
switch (GetSystemUpdateLevel())
|
||||
{
|
||||
case PackageVersionClass.Beta:
|
||||
return TimeSpan.FromMinutes(30);
|
||||
case PackageVersionClass.Dev:
|
||||
return TimeSpan.FromMinutes(3);
|
||||
default:
|
||||
return TimeSpan.FromHours(24);
|
||||
}
|
||||
return TimeSpan.FromMinutes(3);
|
||||
}
|
||||
|
||||
protected PackageInfo[] FilterPackages(List<PackageInfo> packages)
|
||||
|
Loading…
Reference in New Issue
Block a user