Skip to content

Don't clear caches if we're setting current to the existing value#28

Open
jturkel wants to merge 1 commit intomasterfrom
feature/clear-current
Open

Don't clear caches if we're setting current to the existing value#28
jturkel wants to merge 1 commit intomasterfrom
feature/clear-current

Conversation

@jturkel
Copy link
Member

@jturkel jturkel commented Dec 10, 2019

This PR updates current= and current_id= to be no-ops if setting current to the existing value which avoids clearing any caches. It also fixes clear_current! to ensure they propagate to dependent objects.

@atsheehan - you're prime

@jturkel jturkel requested a review from atsheehan December 10, 2019 17:53
Copy link
Contributor

@atsheehan atsheehan left a comment

Choose a reason for hiding this comment

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

Found this one while clearing out my PR inbox, woops :)

LGTM after bumping the version to the latest value.

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