Do not write cache if lifetime is zero