summaryrefslogtreecommitdiff
path: root/docs/api/request.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-09 00:57:15 -0600
committerMichael Merickel <michael@merickel.org>2020-01-09 00:57:15 -0600
commit79d6a38a66a68231e651a6c81e784ab1a78c07de (patch)
tree75d8ffbeec444a564ae5b6623a9ce361eddedced /docs/api/request.rst
parent025824417f0d779f41717a28047dc420991015aa (diff)
downloadpyramid-79d6a38a66a68231e651a6c81e784ab1a78c07de.tar.gz
pyramid-79d6a38a66a68231e651a6c81e784ab1a78c07de.tar.bz2
pyramid-79d6a38a66a68231e651a6c81e784ab1a78c07de.zip
fix paradigm to avoid incorrect usages
It's almost impossible to create a decorator that works on both methods and functions, but more importantly the original approach was sharing a cache across instances of the policy. It needed to be local to the policy instance, but shared across requests. The new example demonstrates that. The cache is also much more flexible in its usage patterns now.
Diffstat (limited to 'docs/api/request.rst')
-rw-r--r--docs/api/request.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/api/request.rst b/docs/api/request.rst
index 59d85ac2a..357e49b76 100644
--- a/docs/api/request.rst
+++ b/docs/api/request.rst
@@ -365,3 +365,4 @@
.. autoclass:: RequestLocalCache
:members:
+ :special-members: