kids.cache
kids.cache copied to clipboard
Clear all cache
Is there a way to clear all cached data at once?
Sorry for the late answer. No, there are currently no ways to clear all cache at once. I'll keep this issue open until I decide to implement it or somebody does.
This seems possible by keeping a weak reference of all _cache_wrapper in cachedfunc in a module object. A global function cache_clear() could unreference all weakref and for those still alive, trigger their own .cache_clear().