Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear all cache #8

Open
nicholastulach opened this issue Oct 25, 2017 · 1 comment
Open

Clear all cache #8

nicholastulach opened this issue Oct 25, 2017 · 1 comment

Comments

@nicholastulach
Copy link

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

@vaab
Copy link
Member

vaab commented Nov 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants