rename cache tag param
This commit is contained in:
parent
83619ef25a
commit
c177de9407
|
@ -41,8 +41,8 @@ namespace MediaBrowser.Api
|
||||||
[ApiMember(Name = "Name", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
|
[ApiMember(Name = "Name", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
||||||
[ApiMember(Name = "Tag", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
[ApiMember(Name = "CacheTag", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
||||||
public string Tag { get; set; }
|
public string CacheTag { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Themes", "POST")]
|
[Route("/Themes", "POST")]
|
||||||
|
@ -89,7 +89,7 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
TimeSpan? cacheDuration = null;
|
TimeSpan? cacheDuration = null;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(request.Tag) && cacheGuid == new Guid(request.Tag))
|
if (!string.IsNullOrEmpty(request.CacheTag) && cacheGuid == new Guid(request.CacheTag))
|
||||||
{
|
{
|
||||||
cacheDuration = TimeSpan.FromDays(365);
|
cacheDuration = TimeSpan.FromDays(365);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user