Cache-related TTLs as floats, not ints

This is the followup pull request for #3504

I apologize that I could not add tests (yet), hopefully someone else could help or I can take time to learn how Laravel does testing.