refactor: cleanup the cache expire check
add: make time between cache expire a number of hours