summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/logging/tutorial
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/quick_tutorial/logging/tutorial
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/quick_tutorial/logging/tutorial')
0 files changed, 0 insertions, 0 deletions