update etag for for the touched file

This commit is contained in:
Björn Schießle 2013-05-08 15:49:45 +02:00
parent b9134dcd6a
commit 0e30e68b22
1 changed files with 9 additions and 1 deletions

View File

@ -132,7 +132,15 @@ class Updater {
* @param array $params
*/
static public function touchHook($params) {
self::writeUpdate($params['path']);
$path = $params['path'];
list($storage, $internalPath) = self::resolvePath($path);
$cache = $storage->getCache();
$id = $cache->getId($internalPath);
if ($id !== -1) {
$cache->update($id, array('etag' => $storage->getETag($internalPath)));
self::correctFolder($parent, $time);
}
self::writeUpdate($path);
}
/**