Avoid unneeded database queries
This commit is contained in:
1 parent
18d054c1fb
commit
b403a8c6ae
1 file changed
+4
@@ -44,6 +44,10 @@ class StaticSearchParamsRequestService
|
||||
|
||||
$uri = strtolower(parse_url($currentUri, \PHP_URL_PATH));
|
||||
|
||||
if (strpos($uri, self::PREFIX_PATH_SEGMENT) === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
$qb = DbUtility::getDbConnection()->createQueryBuilder();
|
||||
$query = $qb
|
||||
->select('*')
|
||||
|
||||
Reference in new issue
Block a user