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.
Review hint: Removed file_trashbin as we want to react on CacheEntryRemovedEvent even if the node is in the trash bin.
come-nc
left a comment
There was a problem hiding this comment.
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 <louis@chmn.me>
5a4502c to
38f6463
Compare
|
Superseded by #41634 |
Fix #34424
Need #34773
NodeDeletedEventis 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.