Repository navigation
always connect file cache updater hooks first - #2943
Merged
Merged
Conversation
Contributor
Author
|
pulling @bartv2 here as another reviewer |
Contributor
|
looks good :) 👍 |
Contributor
|
👍 |
MTGap
pushed a commit
that referenced
this pull request
Apr 16, 2013
always connect file cache updater hooks first
Contributor
|
Please backport @butonic so we can get into 5.0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Debugging issue #2170 I saw that the signals for post rename would first go to the files_sharing updater and then to the files_cache updater. As it turns out
self::$registered[$signalclass][$signalname]in OC_Hook obviously shows the updaters in the wrong order.Since the files app is hardcoded to always be the first app, this PR causes the cache updater to be connected before the files_sharing updater. This definitely fixes #2866 and should also fix #2170
@icewind1991 I think moving the hook connects to the app.php is the right way to force the file cache to always be updated first. Please correct me if I am wrong.
@MTGap please try this PR to see if it fixes the rename issues.
@Raydiation @schiesbn does this help with your trashbin problems?