Skip to content

Add cache key_group invalidation#5

Merged
ahter merged 4 commits into
ahter:ticket-5815-per-view-cache-invalidation-v2from
marco-silva0000:ticket-5815-per-view-cache-invalidation-v2
Jun 2, 2023
Merged

Add cache key_group invalidation#5
ahter merged 4 commits into
ahter:ticket-5815-per-view-cache-invalidation-v2from
marco-silva0000:ticket-5815-per-view-cache-invalidation-v2

Conversation

@marco-silva0000
Copy link
Copy Markdown

No description provided.

ahter and others added 2 commits June 2, 2023 13:33
This uses the key group to invalidate the cache that
is stored for the view.
Comment thread django/middleware/cache.py Outdated

"""

from functools import cache
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This one will be removed.

return response


def handle_key_group(key_group, cache):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Maybe private.

Comment thread tests/cache/tests.py
self.assertIsNotNone(result)

# Put the request through the request middleware
result = middleware_group2_callable.process_request(request)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove in rebase.

@ahter ahter force-pushed the ticket-5815-per-view-cache-invalidation-v2 branch from 5b97681 to 1896533 Compare June 2, 2023 13:01
@ahter ahter merged commit 8b7a3ca into ahter:ticket-5815-per-view-cache-invalidation-v2 Jun 2, 2023
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