summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-11-10 13:27:46 -0500
committerTim Graham <timograham@gmail.com>2015-11-10 13:29:00 -0500
commitf10226232f31dc6d0a19db0b25a8e7aadea141da (patch)
tree9fd2df87c2fa6760ef4a607b2e2f82ae1307cea5 /docs
parentf9a08eb8975d8a49bee8cc42ae207100adb6ce75 (diff)
[1.9.x] Fixed #25727 -- Added a doc link to cached_property.
Backport of e0de82c9b2c41c4c479d2245e7d5cd59638b5440 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/performance.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/performance.txt b/docs/topics/performance.txt
index 931d2d6fa4..718fa4762e 100644
--- a/docs/topics/performance.txt
+++ b/docs/topics/performance.txt
@@ -174,11 +174,11 @@ final steps towards producing well-performing code, not a shortcut.
It's common to have to call a class instances's method more than once. If
that function is expensive, then doing so can be wasteful.
-Using the ``@cached_property`` decorator saves the value returned by a
-property; the next time the function is called on that instance, it will return
-the saved value rather than re-computing it. Note that this only works on
-methods that take ``self`` as their only argument and that it changes the
-method to a property.
+Using the :class:`~django.utils.functional.cached_property` decorator saves the
+value returned by a property; the next time the function is called on that
+instance, it will return the saved value rather than re-computing it. Note that
+this only works on methods that take ``self`` as their only argument and that
+it changes the method to a property.
Certain Django components also have their own caching functionality; these are
discussed below in the sections related to those components.