summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Caching
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Framework/Caching')
-rw-r--r--src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs6
-rw-r--r--src/SMAPI.Web/Framework/Caching/Wiki/CachedWikiMetadata.cs2
-rw-r--r--src/SMAPI.Web/Framework/Caching/Wiki/IWikiCacheRepository.cs4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs b/src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs
index 904455c5..f5354b93 100644
--- a/src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs
+++ b/src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs
@@ -10,10 +10,10 @@ namespace StardewModdingAPI.Web.Framework.Caching
*********/
/// <summary>Whether cached data is stale.</summary>
/// <param name="lastUpdated">The date when the data was updated.</param>
- /// <param name="cacheMinutes">The age in minutes before data is considered stale.</param>
- public bool IsStale(DateTimeOffset lastUpdated, int cacheMinutes)
+ /// <param name="staleMinutes">The age in minutes before data is considered stale.</param>
+ public bool IsStale(DateTimeOffset lastUpdated, int staleMinutes)
{
- return lastUpdated < DateTimeOffset.UtcNow.AddMinutes(-cacheMinutes);
+ return lastUpdated < DateTimeOffset.UtcNow.AddMinutes(-staleMinutes);
}
}
}
diff --git a/src/SMAPI.Web/Framework/Caching/Wiki/CachedWikiMetadata.cs b/src/SMAPI.Web/Framework/Caching/Wiki/CachedWikiMetadata.cs
index de1ea9db..4d6b4b10 100644
--- a/src/SMAPI.Web/Framework/Caching/Wiki/CachedWikiMetadata.cs
+++ b/src/SMAPI.Web/Framework/Caching/Wiki/CachedWikiMetadata.cs
@@ -37,7 +37,7 @@ namespace StardewModdingAPI.Web.Framework.Caching.Wiki
{
this.StableVersion = stableVersion;
this.BetaVersion = betaVersion;
- this.LastUpdated = DateTimeOffset.UtcNow;;
+ this.LastUpdated = DateTimeOffset.UtcNow;
}
}
}
diff --git a/src/SMAPI.Web/Framework/Caching/Wiki/IWikiCacheRepository.cs b/src/SMAPI.Web/Framework/Caching/Wiki/IWikiCacheRepository.cs
index d319db69..6031123d 100644
--- a/src/SMAPI.Web/Framework/Caching/Wiki/IWikiCacheRepository.cs
+++ b/src/SMAPI.Web/Framework/Caching/Wiki/IWikiCacheRepository.cs
@@ -17,8 +17,8 @@ namespace StardewModdingAPI.Web.Framework.Caching.Wiki
/// <summary>Whether cached data is stale.</summary>
/// <param name="lastUpdated">The date when the data was updated.</param>
- /// <param name="cacheMinutes">The age in minutes before data is considered stale.</param>
- bool IsStale(DateTimeOffset lastUpdated, int cacheMinutes);
+ /// <param name="staleMinutes">The age in minutes before data is considered stale.</param>
+ bool IsStale(DateTimeOffset lastUpdated, int staleMinutes);
/// <summary>Get the cached wiki mods.</summary>
/// <param name="filter">A filter to apply, if any.</param>