Performance tests

This commit is contained in:
Michael Vogel 2012-05-20 00:11:32 +02:00
parent 9a940786c1
commit 8c80fe0bf5
4 changed files with 19 additions and 10 deletions

View file

@ -413,7 +413,7 @@ function network_content(&$a, $update = 0) {
$myurl = str_replace(array('www.','.'),array('','\\.'),$myurl);
$diasp_url = str_replace('/profile/','/u/',$myurl);
$sql_extra .= sprintf(" AND `item`.`parent` IN (SELECT distinct(`parent`) from item where ( `author-link` like '%s' or `tag` like '%s' or tag like '%s' )) ",
dbesc(protect_sprintf('%s' . $myurl)),
dbesc(protect_sprintf('%' . $myurl)),
dbesc(protect_sprintf('%' . $myurl . '\\]%')),
dbesc(protect_sprintf('%' . $diasp_url . '\\]%'))
);