diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-10-30 10:51:25 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-11-07 15:20:51 +0100 |
commit | f27b6b0ab87b041229d564bbbabcd86a98dc6325 (patch) | |
tree | 8083e5331da0016f88dd7b91dc3a073fa23d7b4b /lib/private/files/cache | |
parent | 3d19bb2e51333fed3edb106c52740a8dba4f700c (diff) | |
download | nextcloud-server-f27b6b0ab87b041229d564bbbabcd86a98dc6325.tar.gz nextcloud-server-f27b6b0ab87b041229d564bbbabcd86a98dc6325.zip |
don't scan part files
Diffstat (limited to 'lib/private/files/cache')
-rw-r--r-- | lib/private/files/cache/cache.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 7ea00325a10..2c12f834518 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -71,7 +71,7 @@ class Cache { if (empty(self::$mimetypeIds)) { $this->loadMimetypes(); } - + if (!isset(self::$mimetypeIds[$mime])) { try{ $result = \OC_DB::executeAudited('INSERT INTO `*PREFIX*mimetypes`(`mimetype`) VALUES(?)', array($mime)); @@ -82,8 +82,8 @@ class Cache { \OC_Log::write('core', 'Exception during mimetype insertion: ' . $e->getmessage(), \OC_Log::DEBUG); return -1; } - } - + } + return self::$mimetypeIds[$mime]; } @@ -371,7 +371,7 @@ class Cache { $this->remove($child['path']); } } - + $sql = 'DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?'; \OC_DB::executeAudited($sql, array($entry['fileid'])); } |