Skip to content

Support Django async cache API#241

Closed
Archmonger wants to merge 1 commit into
grantjenks:masterfrom
Archmonger:master
Closed

Support Django async cache API#241
Archmonger wants to merge 1 commit into
grantjenks:masterfrom
Archmonger:master

Conversation

@Archmonger

@Archmonger Archmonger commented Dec 10, 2021

Copy link
Copy Markdown

Django 4.0 brought async cache API, but the default for these calls have thread_sensitive=True, which diskcache does not need.

In the interest of performance, thread sensitive has been turned off.

This is probably best done upstream within Django core as a ASYNC_THREAD_SENSITIVE:bool, but it will get to end users faster if we merge this PR within diskcache.

See #231 for more details.

@Archmonger

Copy link
Copy Markdown
Author

This PR still needs tests, but is technically functional as-is.

@Archmonger Archmonger closed this Dec 11, 2021
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.

1 participant