aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/filesystem.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-11 18:11:22 -0800
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-11 18:11:22 -0800
commit3a9ec452729bf9b6a51d36750b095d9ef80a5f7e (patch)
tree1e32881a8efbf5b3c925b826b1656cbc8328b919 /lib/files/filesystem.php
parent36cac7f924ad07738a3cb72fee06f21d07baad42 (diff)
parent094a852bff378c03c873b6e8fd94587d2a2c784e (diff)
downloadnextcloud-server-3a9ec452729bf9b6a51d36750b095d9ef80a5f7e.tar.gz
nextcloud-server-3a9ec452729bf9b6a51d36750b095d9ef80a5f7e.zip
Merge pull request #1052 from owncloud/filesystem-etags
ETags stored in the file cache
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r--lib/files/filesystem.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index b3ba62c3a49..28e8b046896 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -585,23 +585,6 @@ class Filesystem {
return self::$defaultInstance->hasUpdated($path, $time);
}
- static public function removeETagHook($params, $root = false) {
- if (isset($params['path'])) {
- $path = $params['path'];
- } else {
- $path = $params['oldpath'];
- }
-
- if ($root) { // reduce path to the required part of it (no 'username/files')
- $fakeRootView = new View($root);
- $count = 1;
- $path = str_replace(\OC_App::getStorage("files")->getAbsolutePath(''), "", $fakeRootView->getAbsolutePath($path), $count);
- }
-
- $path = self::normalizePath($path);
- \OC_Connector_Sabre_Node::removeETagPropertyForPath($path);
- }
-
/**
* normalize a path
*
@@ -685,10 +668,6 @@ class Filesystem {
}
}
-\OC_Hook::connect('OC_Filesystem', 'post_write', 'OC_Filesystem', 'removeETagHook');
-\OC_Hook::connect('OC_Filesystem', 'post_delete', 'OC_Filesystem', 'removeETagHook');
-\OC_Hook::connect('OC_Filesystem', 'post_rename', 'OC_Filesystem', 'removeETagHook');
-
\OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Updater', 'writeHook');
\OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook');
\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');