summaryrefslogtreecommitdiff
path: root/plugins/kolab_tags/lib/kolab_tags_backend.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-19 09:10:31 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-19 09:11:18 (GMT)
commite3d29617ae5a0f72efca8f08b5c3f57af6cb4c26 (patch)
tree126b79f71ba87c36f7bc228ae12f0d4b1f302552 /plugins/kolab_tags/lib/kolab_tags_backend.php
parentafed2435d7de81defe006f3bc7f327ddfb2aadcf (diff)
downloadroundcubemail-plugins-kolab-e3d29617ae5a0f72efca8f08b5c3f57af6cb4c26.tar.gz
Query kolab_cache_configuration with category filter for better performance (#3286)
Warning: this requires DELETE FROM kolab_folders WHERE type = 'configuration';
Diffstat (limited to 'plugins/kolab_tags/lib/kolab_tags_backend.php')
-rw-r--r--plugins/kolab_tags/lib/kolab_tags_backend.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/kolab_tags/lib/kolab_tags_backend.php b/plugins/kolab_tags/lib/kolab_tags_backend.php
index 519f962..de69bae 100644
--- a/plugins/kolab_tags/lib/kolab_tags_backend.php
+++ b/plugins/kolab_tags/lib/kolab_tags_backend.php
@@ -38,14 +38,14 @@ class kolab_tags_backend
*/
public function list_tags($filter = array())
{
- $config = kolab_storage_config::get_instance();
- $default = true;
- $filter[] = array('type', '=', self::O_TYPE);
- $cat_filter = array('category' => self::O_CATEGORY);
+ $config = kolab_storage_config::get_instance();
+ $default = true;
+ $filter[] = array('type', '=', self::O_TYPE);
+ $filter[] = array('category', '=', self::O_CATEGORY);
// for performance reasons assume there will be no more than 100 tags (per-folder)
- return $config->get_objects($filter, $default, $cat_filter, 100);
+ return $config->get_objects($filter, $default, 100);
}
/**