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

Remove cache clearing from forget invalidations loop. #18278

Merged
merged 1 commit into from Nov 7, 2021

Conversation

samjf
Copy link
Contributor

@samjf samjf commented Nov 7, 2021

Description:

issue: d2405

There has been a lot of tracker general cache invalidation occurring seemingly needlessly. It seems to come down to the archive invalidation clearing out the cache when trying to forget (remove) the remembered dates that need to be reArchived. This appears to be an accidental regression based off the comment.

I've removed the cache clearing from inside forgetRememberedArchivedReportsToInvalidate method. Both uses of this method will clear the general cache just after this method anyway.

I can't think of any cases that this should cause a problem. The only think I can think is that doing it perhaps only moments later (after the loop) might increase the probability of clearing out something that was just cached. Even if it was the case but picking a time between the two seems arbitrary. In that case it would be preferable to clear the cache before the loop.

Review

@tsteur tsteur added the Needs Review PRs that need a code review label Nov 7, 2021
@tsteur tsteur added this to the 4.6.0 milestone Nov 7, 2021
@tsteur tsteur merged commit d2cfd23 into 4.x-dev Nov 7, 2021
@tsteur tsteur deleted the d2405_fix-many-tracker-general-cache-invalidations branch November 7, 2021 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants