cache: use latest file's time stamp instead of current time