﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35141	Clarify that CACHE_MIDDLEWARE_SECONDS should be an integer.	Alexander Lazarević	Alexander Lazarević	"CACHE_MIDDLEWARE_SECONDS can be a float like 2.0 instead of 2 and will also be set in the response header `Cache-Control` to `max-age: 2.0`

This showed up in a template testcase, where it is set to a float

{{{
@override_settings(
    CACHE_MIDDLEWARE_SECONDS=2.0, ROOT_URLCONF=""template_tests.alternate_urls""
)
class CacheMiddlewareTest(SimpleTestCase):
}}}

It would be sufficient to change the `override_settings` to `2` to make the test correct, but I propose to cast the `settings.CACHE_MIDDLEWARE_SECONDS` value to int at the places it is used, for the same reasons as in https://code.djangoproject.com/ticket/31982"	Cleanup/optimization	closed	Core (Cache system)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
