diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-04-16 13:07:55 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-04-16 13:07:55 +0200 |
commit | 606b672a3d8fbd7af02c773a64680c0fc32bea7a (patch) | |
tree | 668299258647baebe78263343deff13780b942e5 | |
parent | 01d203c7734dc8ec6b755698877c12f23da69da5 (diff) | |
download | nextcloud-server-606b672a3d8fbd7af02c773a64680c0fc32bea7a.tar.gz nextcloud-server-606b672a3d8fbd7af02c773a64680c0fc32bea7a.zip |
always connect file cache updater hooks first
-rw-r--r-- | apps/files/appinfo/app.php | 7 | ||||
-rw-r--r-- | lib/files/filesystem.php | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php index 6535a9b7baa..703b1c7cb6c 100644 --- a/apps/files/appinfo/app.php +++ b/apps/files/appinfo/app.php @@ -12,3 +12,10 @@ OCP\App::addNavigationEntry( array( "id" => "files_index", "name" => $l->t("Files") )); OC_Search::registerProvider('OC_Search_Provider_File'); + +// cache hooks must be connected before all other apps. +// since 'files' is always loaded first the hooks need to be connected here +\OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Updater', 'writeHook'); +\OC_Hook::connect('OC_Filesystem', 'post_touch', '\OC\Files\Cache\Updater', 'touchHook'); +\OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook'); +\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');
\ No newline at end of file diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index c8e62956f19..c0e9d215fb5 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -665,9 +665,4 @@ class Filesystem { } } -\OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Updater', 'writeHook'); -\OC_Hook::connect('OC_Filesystem', 'post_touch', '\OC\Files\Cache\Updater', 'touchHook'); -\OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook'); -\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook'); - \OC_Util::setupFS(); |