79295916

Date: 2024-12-20 00:21:03
Score: 1
Natty:
Report link

since version 1.10 of flask-caching, there is an args_to_ignore parameter to memoize().

so just change @cache.memoize(timeout=30) to @cache.memoize(timeout=30, args_to_ignore=['self']) for any class functions you want to cache.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Qwark