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

Disable shares tree cache for flat file lists #7656

Merged
merged 6 commits into from
Sep 20, 2022

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 19, 2022

Description

Shares tree caching is a problem in flat file lists that gather resources from various places (like "Shared with others", "Shared via link", ...). This is an issue because the caching currently happens purely based on the filename. However, these lists can contain multiple resources with the same name.

In the future, we should think about something else that also includes the storage ID. This is necessary anyway because of #7655.

However, we don't have any performance impact by disabling the cache here as we can't navigate into folders anyway.

Motivation and Context

Followup for #7638

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Sep 19, 2022
@JammingBen JammingBen marked this pull request as ready for review September 19, 2022 11:06
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Very good fix, nice! 💪

@kulmann kulmann merged commit c37c382 into master Sep 20, 2022
@delete-merged-branch delete-merged-branch bot deleted the disable-cached-shares-tree branch September 20, 2022 07:55
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