diff options
| author | Michael Merickel <michael@merickel.org> | 2020-01-09 00:57:15 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2020-01-09 00:57:15 -0600 |
| commit | 79d6a38a66a68231e651a6c81e784ab1a78c07de (patch) | |
| tree | 75d8ffbeec444a564ae5b6623a9ce361eddedced /docs/api/request.rst | |
| parent | 025824417f0d779f41717a28047dc420991015aa (diff) | |
| download | pyramid-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.rst | 1 |
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: |
