[Django]-Django memoize per request

4👍

Maybe you should try with cached_property

The @cached_property decorator caches the result of a method with a
single self argument as a property. The cached result will persist as
long as the instance does, so if the instance is passed around and the
function subsequently invoked, the cached result will be returned.

Leave a comment