Use the path_hash instead of the path to query the filecache
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
82021b2b1b
commit
19c49c8473
|
@ -375,7 +375,7 @@ class UserMountCache implements IUserMountCache {
|
|||
->innerJoin('m', 'filecache', 'f',
|
||||
$builder->expr()->andX(
|
||||
$builder->expr()->eq('m.storage_id', 'f.storage'),
|
||||
$builder->expr()->eq('f.path', $builder->createNamedParameter('files'))
|
||||
$builder->expr()->eq('f.path_hash', $builder->createNamedParameter(md5('files')))
|
||||
))
|
||||
->where($builder->expr()->eq('m.mount_point', $mountPoint))
|
||||
->andWhere($builder->expr()->in('m.user_id', $builder->createNamedParameter($userIds, IQueryBuilder::PARAM_STR_ARRAY)));
|
||||
|
|
Loading…
Reference in New Issue