You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Design/TST/REF clear cache after results.__init__ #2417
related to adding more consistency and "discipline" in creating results instances, with a view on being able to recreate results instances.
Putting values directly into the _cache was a backdoor that I used a few times in experimental scripts.
We need unit tests to check that this doesn't happen in our actual code.
Maybe we should get an internal _clear_cache method, since _cache is in most cases not just a dictionary where we could just do results_cache = {}
another suggestion: an official clear_cache(attr) with attr is attribute or list of attributes to allow users to remove selectively items from cache that might be too large for the given usecase.
This would be without reducing the functionality (if everything works as intended) because cached items can be recomputed.
Activity
josef-pkt commentedon Dec 5, 2016
another suggestion: an official
clear_cache(attr)with attr is attribute or list of attributes to allow users to remove selectively items from cache that might be too large for the given usecase.This would be without reducing the functionality (if everything works as intended) because cached items can be recomputed.