From 3ff12ef4eca82325a6e4f1244a12597174e07192 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Feb 2014 14:21:33 +0100 Subject: Also send explicit cache hooks when calling file_put_contents with a resource --- lib/private/files/view.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/private/files/view.php b/lib/private/files/view.php index a76115a816e..975b5d00099 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, -- cgit v1.2.3