-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
add event for cache update #14269
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
add event for cache update #14269
Conversation
e901589 to
a11ad27
Compare
a11ad27 to
d995083
Compare
Signed-off-by: Robin Appelman <[email protected]>
d995083 to
092f78d
Compare
MorrisJobke
left a comment
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.
Code makes sense 👍
| public function put($file, array $data) { | ||
| if (($id = $this->getId($file)) > -1) { | ||
| $this->update($id, $data); | ||
| $this->update($id, $data, $file); |
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.
server/lib/private/Files/Cache/Cache.php
Lines 309 to 315 in d16cfb5
| /** | |
| * update the metadata of an existing file or folder in the cache | |
| * | |
| * @param int $id the fileid of the existing file or folder | |
| * @param array $data [$key => $value] the metadata to update, only the fields provided in the array will be updated, non-provided values will remain unchanged | |
| */ | |
| public function update($id, array $data) { |
💥
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.
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.
Allows app to also listen to updates and not just inserts