Re: Making key_prefix callable for more flexible caching

2022-03-28 Thread Alexandru M.
I opened https://code.djangoproject.com/ticket/33604 On Wednesday, 23 March 2022 at 01:49:18 UTC+2 Adam Johnson wrote: > It doesn't look like Tobias has done anything. I would say open a new > ticket referencing this discussion, and then open your PR against that. All > the how-to's are in the

Re: Making key_prefix callable for more flexible caching

2022-03-22 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
It doesn't look like Tobias has done anything. I would say open a new ticket referencing this discussion, and then open your PR against that. All the how-to's are in the docs: https://docs.djangoproject.com/en/dev/internals/contributing/ On Mon, Mar 21, 2022 at 6:07 PM Alexandru M. wrote: > Are

Re: Making key_prefix callable for more flexible caching

2022-03-21 Thread Alexandru M.
Are there any plans to work on this? I can pick it up as I already implemented this functionality into own project. What is the process to working on the new features? On Sunday, 23 January 2022 at 12:37:52 UTC+2 Adam Johnson wrote: > Hi Tobias > > I think it's also worth mentioning your blog

Re: Making key_prefix callable for more flexible caching

2022-01-23 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Tobias I think it's also worth mentioning your blog post, in which you explain (to yourself) how to currently achieve dynamic keys: https://rixx.de/blog/how-django-s-page-cache-works/ . It's a lot of work. The closure of #11269 does seem like an oversight, since the

Making key_prefix callable for more flexible caching

2022-01-22 Thread Tobias Kunze
Hi all, after mostly caching via external tools or manually for years, I've been trying out Django's built-in caching recently, and have ran into an issue that I believe could improve the use cases of `cache_page` a lot: `cache_page`/`CacheMiddleware` take an optional `key_prefix` argument as a