[#3523283] Build lifespan options array only when it's used.
Merged
requested to merge issue/views_advanced_cache-3523283:2.0.x-3523283-lifespan-cleanup into 2.x
Also includes constructor property promotion change which will be exclusive to the 2.x branch due to core php support.
merged