Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECONDS setting. #17776

Conversation

e11bits
Copy link
Contributor

@e11bits e11bits commented Jan 25, 2024

This address ticket https://code.djangoproject.com/ticket/35141

The changes are as proposed in the ticket.

This is my fifth PR for Django so please advise as you see fit.

django/middleware/cache.py Outdated Show resolved Hide resolved
django/utils/cache.py Outdated Show resolved Hide resolved
@MiirzaBaig

This comment was marked as off-topic.

@e11bits e11bits closed this Jan 26, 2024
@e11bits e11bits force-pushed the bugfix/35141_cache_middleware_seconds_can_be_set_to_a_float_but_has_to_be_an_int branch from 4856c1e to 3f6d939 Compare January 26, 2024 02:58
@e11bits e11bits reopened this Jan 26, 2024
@e11bits
Copy link
Contributor Author

e11bits commented Jan 26, 2024

I changed the PR as described in the ticket to just fix the docs for CACHE_MIDDLEWARE_SECONDS and the setting for that one test.

PS: I don't know how I managed to close the PR and had to reopen it. Sorry.

@e11bits e11bits force-pushed the bugfix/35141_cache_middleware_seconds_can_be_set_to_a_float_but_has_to_be_an_int branch from 8a67152 to ff1f432 Compare January 26, 2024 14:13
@felixxm felixxm force-pushed the bugfix/35141_cache_middleware_seconds_can_be_set_to_a_float_but_has_to_be_an_int branch from ff1f432 to 2c52816 Compare January 29, 2024 12:39
@felixxm felixxm changed the title Fixed #35141 -- CACHE_MIDDLEWARE_SECONDS can be set to a float but has to be an int Fixed #35141 -- Clarified the expected type of CACHE_MIDDLEWARE_SECONDS setting. Jan 29, 2024
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@e11bits Thanks 👍

@e11bits e11bits force-pushed the bugfix/35141_cache_middleware_seconds_can_be_set_to_a_float_but_has_to_be_an_int branch from 2c52816 to 5bbe60a Compare January 29, 2024 16:28
@felixxm
Copy link
Member

felixxm commented Jan 29, 2024

@e11bits For the future, you don't need to rebase (and force push) after each commit to the main. I marked this as RFC which means that it's waiting for being merged you don't need to do anything else.

@felixxm felixxm merged commit a536533 into django:main Jan 29, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants