diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-18 15:58:06 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-23 15:10:58 +0100 |
commit | 1a262631235445d6ba4d9d0b5bdbc84355e43e5c (patch) | |
tree | 8589630937f6e39fe918160f0011b63cb30a041a /lib | |
parent | 093efa458c16ea4a7f7fcaf3f98e1e0fb96624c4 (diff) | |
download | nextcloud-server-1a262631235445d6ba4d9d0b5bdbc84355e43e5c.tar.gz nextcloud-server-1a262631235445d6ba4d9d0b5bdbc84355e43e5c.zip |
Do not walk over the users directory, but over the list of tagged objects
Way quicker
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/tags.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/tags.php b/lib/private/tags.php index 200ec8c2771..276da9d4b80 100644 --- a/lib/private/tags.php +++ b/lib/private/tags.php @@ -34,8 +34,8 @@ namespace OC; -use \OC\Tagging\Tag, - \OC\Tagging\TagMapper; +use \OC\Tagging\Tag; +use \OC\Tagging\TagMapper; class Tags implements \OCP\ITags { @@ -248,6 +248,7 @@ class Tags implements \OCP\ITags { * * @param string $tag Tag id or name. * @return array|false An array of object ids or false on error. + * @throws \Exception */ public function getIdsForTag($tag) { $result = null; |