diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-07-19 13:15:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 18:52:58 -0400 |
commit | ce6cedaf4be53d52f2e558055b91e515b92e4c83 (patch) | |
tree | 2984ef22c225e25221c080eb0b26466d99aae1b6 /src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs | |
parent | 88110dffbf4bace738e8f29133bfb3ac4b265e2c (diff) | |
download | SMAPI-ce6cedaf4be53d52f2e558055b91e515b92e4c83.tar.gz SMAPI-ce6cedaf4be53d52f2e558055b91e515b92e4c83.tar.bz2 SMAPI-ce6cedaf4be53d52f2e558055b91e515b92e4c83.zip |
add background fetch for mod compatibility list (#651)
Diffstat (limited to 'src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs')
-rw-r--r-- | src/SMAPI.Web/Framework/Caching/BaseCacheRepository.cs | 6 |
1 files changed, 3 insertions, 3 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); } } } |