From 3ff12ef4eca82325a6e4f1244a12597174e07192 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Fri, 28 Feb 2014 14:21:33 +0100
Subject: [PATCH] Also send explicit cache hooks when calling file_put_contents
 with a resource

---
 lib/private/files/view.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index a76115a816..975b5d0009 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -310,6 +310,9 @@ class View {
 					fclose($target);
 					fclose($data);
 					if ($this->shouldEmitHooks($path) && $result !== false) {
+						Updater::writeHook(array(
+							'path' => $this->getHookPath($path)
+						));
 						if (!$exists) {
 							\OC_Hook::emit(
 								Filesystem::CLASSNAME,
-- 
GitLab