change cache from date to seconds