diff options
author | Klaas Freitag <freitag@owncloud.com> | 2012-02-10 11:30:38 +0100 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2012-02-10 11:30:38 +0100 |
commit | 85853f9ec29be9a2ba92737de204da1469f72dd8 (patch) | |
tree | 754f80507e5c27cf102e6b18ced9e8a473eb069e /lib/filecache.php | |
parent | 9379c3e1284d2d9250af4e5d406a7f6803309fad (diff) | |
download | nextcloud-server-85853f9ec29be9a2ba92737de204da1469f72dd8.tar.gz nextcloud-server-85853f9ec29be9a2ba92737de204da1469f72dd8.zip |
- Added the ability to change a files mtime via webdavs propset.
- Added some minor debug help to fscache
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index cb516223f63..921d4a27902 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -62,7 +62,7 @@ class OC_FileCache{ if(is_array($result)){ return $result; }else{ - OC_Log::write('file not found in cache ('.$path.')','core',OC_Log::DEBUG); + OC_Log::write('get(): file not found in cache ('.$path.')','core',OC_Log::DEBUG); return false; } } @@ -125,7 +125,9 @@ class OC_FileCache{ $queryParts[]='mimepart=?'; } $arguments[]=$id; - $query=OC_DB::prepare('UPDATE *PREFIX*fscache SET '.implode(' , ',$queryParts).' WHERE id=?'); + + $sql = 'UPDATE *PREFIX*fscache SET '.implode(' , ',$queryParts).' WHERE id=?'; + $query=OC_DB::prepare($sql); $query->execute($arguments); } @@ -231,7 +233,7 @@ class OC_FileCache{ if(is_array($result)){ return $result; }else{ - OC_Log::write('file not found in cache ('.$path.')','core',OC_Log::DEBUG); + OC_Log::write('getFolderContent(): file not found in cache ('.$path.')','core',OC_Log::DEBUG); return false; } } @@ -264,7 +266,7 @@ class OC_FileCache{ if(is_array($result)){ return $result['id']; }else{ - OC_Log::write('file not found in cache ('.$path.')','core',OC_Log::DEBUG); + OC_Log::write('getFieldId(): file not found in cache ('.$path.')','core',OC_Log::DEBUG); return -1; } } @@ -293,6 +295,7 @@ class OC_FileCache{ }else{ $view=new OC_FilesystemView(($root=='/')?'':$root); } + $path=$params['path']; $fullPath=$view->getRoot().$path; $mimetype=$view->getMimeType($path); |