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

Fixed clearCache(). #41

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

mkrumpus
Copy link
Contributor

The clearCache() function was not implemented correctly, as it simply replaced the references in the caches array with empty objects without changing the underlying caches. For example, after calling clearCache() the object cachedSatelliteInfo would remain unchanged and continue to grow with no way of clearing it.
This fix operates on the underlying cache objects by removing all keys from the cache objects while preserving all references to the caches.

@davidcalhoun
Copy link
Owner

Thank you for contributing! I'll take a look when I have a chance.

@davidcalhoun davidcalhoun merged commit c0f9dd1 into davidcalhoun:master Oct 27, 2023
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