-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Listen to cache event for managing metadata #34586
Conversation
860e4c2
to
e579dfd
Compare
e579dfd
to
7f962a3
Compare
I currently have this kind of errors when creating a new file: |
e2a54a6
to
f5638ca
Compare
c3fd7c2
to
11b56d0
Compare
Possible performance regression detected Show Output
|
Possible performance regression detected Show Output
|
11b56d0
to
de007ae
Compare
The performance bot is finding suspicious things |
Possible performance regression detected Show Output
|
8af96af
to
5a4502c
Compare
} | ||
|
||
private function isCorrectPath(string $path): bool { | ||
// TODO make this more dynamic, we have the same issue in other places | ||
return !str_starts_with($path, 'appdata_') && !str_starts_with($path, 'files_versions/') && !str_starts_with($path, 'files_trashbin/'); | ||
return !str_starts_with($path, 'appdata_') && !str_starts_with($path, 'files_versions/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review hint: Removed file_trashbin
as we want to react on CacheEntryRemovedEvent
even if the node is in the trash bin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between OCP\Files\Events\NodeRemovedFromCache and OCP\Files\Cache\CacheEntryRemovedEvent ?
Apart from that, I don't really know ^^ |
Signed-off-by: Louis Chemineau <[email protected]>
5a4502c
to
38f6463
Compare
Superseded by #41634 |
Fix #34424
Need #34773
NodeDeletedEvent
is called when a file is put to the trash, and we want to remove metadata when the file is really deleted, so we now listen toCacheEntryRemovedEvent
.