summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_cache_configuration.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-19 12:20:47 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-19 12:20:47 (GMT)
commit07308521792a182e9cd4de10d067b96c190d21a5 (patch)
treed6d96356c7eb52fe0af9f538e3bb3c4732be44e9 /plugins/libkolab/lib/kolab_storage_cache_configuration.php
parente3d29617ae5a0f72efca8f08b5c3f57af6cb4c26 (diff)
downloadroundcubemail-plugins-kolab-07308521792a182e9cd4de10d067b96c190d21a5.tar.gz
Cache relation members for better performance (#3452)
Diffstat (limited to 'plugins/libkolab/lib/kolab_storage_cache_configuration.php')
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache_configuration.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache_configuration.php b/plugins/libkolab/lib/kolab_storage_cache_configuration.php
index 97315da..ec015dd 100644
--- a/plugins/libkolab/lib/kolab_storage_cache_configuration.php
+++ b/plugins/libkolab/lib/kolab_storage_cache_configuration.php
@@ -52,6 +52,12 @@ class kolab_storage_cache_configuration extends kolab_storage_cache
$query[$idx][0] = 'tags';
$query[$idx][2] = count($param[2]) > 1 ? $param[2] : $param[2][0];
}
+ // convert member filter (we support only = operator with single value)
+ else if ($param[0] == 'member') {
+ $query[$idx][0] = 'words';
+ $query[$idx][1] = '~';
+ $query[$idx][2] = '^' . $param[2] . '$';
+ }
}
}