Skip to content

Commit 7a55c17

Browse files
committed
change ctime to mtime
1 parent 8446e46 commit 7a55c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utility.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if (!utils::file_test("-f", pathCacheFile)) { return(FALSE) }
3030
if (is.null(lifespan)) { lifespan = getOption("MAX.CACHE.AGE") }
3131
if (is.null(lifespan)) { return(FALSE) }
32-
cacheTime = file.info(pathCacheFile)$ctime
32+
cacheTime = file.info(pathCacheFile)$mtime
3333
cacheAge = difftime(Sys.time(), cacheTime, units="days")
3434
as.numeric(cacheAge) > as.numeric(lifespan)
3535
}

0 commit comments

Comments
 (0)