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 /apps/files/appinfo/app.php | |
parent | 01d203c7734dc8ec6b755698877c12f23da69da5 (diff) | |
download | nextcloud-server-606b672a3d8fbd7af02c773a64680c0fc32bea7a.tar.gz nextcloud-server-606b672a3d8fbd7af02c773a64680c0fc32bea7a.zip |
always connect file cache updater hooks first
Diffstat (limited to 'apps/files/appinfo/app.php')
-rw-r--r-- | apps/files/appinfo/app.php | 7 |
1 files changed, 7 insertions, 0 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 |