thadeusb / flask-cache

Cache extension for Flask
http://packages.python.org/Flask-Cache/
Other
697 stars 185 forks source link

Evaluating unless at runtime #135

Open theotherp opened 8 years ago

theotherp commented 8 years ago

I want to make memoization depend on a configuration value that is loaded when the program is started. Unfortunately memoize being a decorator "unless" is evaluated before that happens. Any idea on how to achieve this?