Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 7ae9cef

Browse files
Merge pull request #53 from InfinityGhost/cache-expiration
Increase cache expiration interval
2 parents a9bed33 + fa62d97 commit 7ae9cef

5 files changed

Lines changed: 4 additions & 47 deletions

File tree

OpenTabletDriver.Web.Core/GitHub/Services/GitHubReleaseService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ IMemoryCache cache
2929
this.cache = cache;
3030
}
3131

32-
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(1);
32+
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(10);
3333

3434
public Task<IReadOnlyList<IRelease>> GetAllReleases()
3535
{

OpenTabletDriver.Web.Core/GitHub/Services/GitHubRepositoryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IMemoryCache cache
3636
private const string REPOSITORY_OWNER = "OpenTabletDriver";
3737
private const string REPOSITORY_NAME = "OpenTabletDriver";
3838

39-
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(1);
39+
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(10);
4040

4141
public Task<Repository> GetRepository()
4242
{

OpenTabletDriver.Web.Core/GitHub/Services/GitHubTabletService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ IMemoryCache cache
2020
this.cache = cache;
2121
}
2222

23-
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(5);
23+
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(10);
2424

2525
public Task<string> GetMarkdownRaw()
2626
{

OpenTabletDriver.Web.Core/Plugins/GitHubPluginMetadataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ IMemoryCache cache
3030
private const string REPOSITORY_OWNER = "OpenTabletDriver";
3131
private const string REPOSITORY_NAME = "Plugin-Repository";
3232

33-
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(1);
33+
private static readonly TimeSpan Expiration = TimeSpan.FromMinutes(10);
3434

3535
public Task<IReadOnlyList<PluginMetadata>> GetPlugins()
3636
{

OpenTabletDriver.Web.Core/Utilities/RestClientAdvanced.cs

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)