Fixed undefined vars in default cache lifetime