#32306: Add decorator django.utils.functional.cached_classproperty
-------------------------------------+-------------------------------------
Reporter: Boris | Owner: nobody
Type: New | Status: new
feature |
Component: Utilities | Version: 3.1
Severity: Normal | Keywords: cached
Triage Stage: | classproperty
Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hello,
I propose new decorator "cached_classproperty".
Django has a lot of methods for caching, like cached_page and
cached_property.
Сaching improves response times.
It was useful for me. I needed to cache the class property because the
calculation needed to be done on the value.
What do you think about it?
https://github.com/django/django/pull/13813
--
Ticket URL: <https://code.djangoproject.com/ticket/32306>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/056.a92f125d93d31d66a5561df9070d3106%40djangoproject.com.