Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Conversation

@koreno
Copy link
Contributor

@koreno koreno commented Sep 2, 2018

and we need this to get some caching going at least within the process ('_get_instance_types_meta', for example)

This is mainly for now where we disable it in our automation due to some unresolved bugs.
When those are resolved we can turn it back on, although it is mainly for the benefit of users, not the volatile automation env.
@koreno koreno requested a review from idanarye September 2, 2018 22:07
@koreno koreno self-assigned this Sep 2, 2018
return ret

inner = timecache(expiration=self.expiration)(inner)
self._timecache_clear = inner.cache_clear

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm not following this correctly, but wouldn't this override self._timecache_clear to be the cache_clear of the last returned cache? If the PersistentCache is called multiple times, clear() will only clear the cache of the last call?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants