We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8446e46 commit 7a55c17Copy full SHA for 7a55c17
R/utility.R
@@ -29,7 +29,7 @@
29
if (!utils::file_test("-f", pathCacheFile)) { return(FALSE) }
30
if (is.null(lifespan)) { lifespan = getOption("MAX.CACHE.AGE") }
31
if (is.null(lifespan)) { return(FALSE) }
32
- cacheTime = file.info(pathCacheFile)$ctime
+ cacheTime = file.info(pathCacheFile)$mtime
33
cacheAge = difftime(Sys.time(), cacheTime, units="days")
34
as.numeric(cacheAge) > as.numeric(lifespan)
35
}
0 commit comments