allow disabling of cache by setting time to 0