Message 189982 - Python tracker (original) (raw)
Please expose this as an attribute of the class or module, not as a function. A function is orders of magnitude slower than attribute access, and the entire point of exposing this is to allow caches to be invalidated.
In order to be useful for cache invalidation, the token has to be read on every access to a cache, thus adding unnecessary overhead to every cache access.