|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
jcline commented 6 years ago Is the intention here for this to be overridden by subclasses? If so, would it make more sense to make it part of the public interface by calling it | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Some functions retrieve a large amount of data to filter it later in the view. This is often the case with Datagrepper because the API does not allow complex filtering. As a result, the cache for this data does not need to be invalidated when a filter changes. This branch adds a variable so widgets can declare that.
There's also a commit allowing a cached function to declare what results should not be cached. For example if an HTTP request fails, it does not make sense to cache the empty result. This branch allows cached function to declare which values should not be cached (for example, None
)
Neat, I didn't know about this