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

Memoize get_prj_pseudometa results #378

Merged
merged 3 commits into from Aug 5, 2015
Merged

Memoize get_prj_pseudometa results #378

merged 3 commits into from Aug 5, 2015

Conversation

aplanas
Copy link
Contributor

@aplanas aplanas commented Jul 31, 2015

To avoid hit multiple times the OBS server asking for the _meta content in the staging project, I use a memoization version of get_prj_pseudometa.

This will cause problems with the select command, that will update the description field with some YAML metadata, causing get_prj_pseudometa returning outdated information.

To resolve this issue I also provide a mechanism to externally invalidate the memoization content from one specific set of parameter, adding a new dynamic method to the class. So for every memoized method, a new _invalidate_XXXX method is created.

coolo added a commit that referenced this pull request Aug 5, 2015
Memoize get_prj_pseudometa results
@coolo coolo merged commit 3626a79 into openSUSE:master Aug 5, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants