Use ceil instead of floor for cache expiry to avoid 0 seconds cache duration.