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

fixes #34279 - disk cache ttl expiry #35453

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

theothergraham
Copy link
Contributor

@theothergraham theothergraham commented Aug 15, 2016

What does this PR do?

This PR fixes the expiry of cache items loaded from disk in utils.cache.CacheDisk, and adds unit tests.

What issues does this PR fix or reference?

This PR fixes issue #34279

Previous Behavior

Pillar caches persisted to disk did not expire, and thus remained stale until the pillar cache file was removed.

New Behavior

Pillar caches persisted to disk now contain the key cache times, so that they can be reloaded and used to expire stale items.

Tests written?

Yes

@cachedout cachedout merged commit a8c4f17 into saltstack:2015.8 Aug 16, 2016
@cachedout
Copy link
Contributor

Awesome! Thanks, @theothergraham

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.

2 participants