Show More
@@ -856,7 +856,7 b' def conditional_cache(region, prefix, co' | |||||
856 | #heavy computation function |
|
856 | #heavy computation function | |
857 | return data |
|
857 | return data | |
858 |
|
858 | |||
859 |
# de |
|
859 | # depending from condition the compute is wrapped in cache or not | |
860 | compute = conditional_cache('short_term', 'cache_desc', condition=True, func=func) |
|
860 | compute = conditional_cache('short_term', 'cache_desc', condition=True, func=func) | |
861 | return compute(arg) |
|
861 | return compute(arg) | |
862 |
|
862 |
General Comments 0
You need to be logged in to leave comments.
Login now