kids.cache icon indicating copy to clipboard operation
kids.cache copied to clipboard

Clear all cache

Open nicholastulach opened this issue 8 years ago • 1 comments

Is there a way to clear all cached data at once?

nicholastulach avatar Oct 25 '17 20:10 nicholastulach

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().

vaab avatar Nov 10 '17 16:11 vaab