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

fix: Avoid clear cache with prefix #43992

Merged
merged 1 commit into from Mar 8, 2024
Merged

fix: Avoid clear cache with prefix #43992

merged 1 commit into from Mar 8, 2024

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Mar 5, 2024

Calling clear on Redis is a heavy operation and can result in slow queries there. For the reference cache we can avoid in cases we know that we have never set entries with a prefix.

One common case is file references where we always called clear on file deletion, share adding/removal even though no references to those files were used.

@juliushaertl juliushaertl requested review from nickvergessen, julien-nc, a team, ArtificialOwl, icewind1991 and Fenn-CS and removed request for a team March 5, 2024 10:04
@juliushaertl juliushaertl added this to the Nextcloud 29 milestone Mar 5, 2024
@juliushaertl
Copy link
Member Author

/backport to stable28

@juliushaertl
Copy link
Member Author

/backport to stable27

@juliushaertl
Copy link
Member Author

/backport to stable26

@juliushaertl
Copy link
Member Author

/backport to stable25

@juliushaertl juliushaertl force-pushed the fix/avoid-cache-clear branch 2 times, most recently from ae4999b to 4b5250e Compare March 5, 2024 19:50
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 7, 2024
@skjnldsv skjnldsv enabled auto-merge March 7, 2024 21:58
@nickvergessen
Copy link
Member

There were 17 failures:

  1. OCA\UpdateNotification\Tests\Controller\AdminControllerTest::testCreateCredentials

Because @susnux PR was merged without passing CI, so either needs a rebase after #44074 is in or another blind red CI merge

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@skjnldsv skjnldsv merged commit b6691b3 into master Mar 8, 2024
160 checks passed
@skjnldsv skjnldsv deleted the fix/avoid-cache-clear branch March 8, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug performance 🚀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants