mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 10:28:50 +00:00
Some speed improvements
This commit is contained in:
parent
7b24476b81
commit
21605a52c9
3 changed files with 10 additions and 4 deletions
|
@ -434,7 +434,7 @@ function gpluspost_init() {
|
|||
foreach ($items AS $item)
|
||||
gpluspost_feeditem($item, $uid);
|
||||
} else {
|
||||
$items = q("SELECT `id` FROM `item` FORCE INDEX (`received`) WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `item`.`id` = `item`.`parent` ORDER BY `received` DESC LIMIT 10");
|
||||
$items = q("SELECT `id` FROM `item` WHERE `item`.`visible` = 1 AND `item`.`deleted` = 0 and `item`.`moderated` = 0 AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `item`.`id` = `item`.`parent` ORDER BY `received` DESC LIMIT 10");
|
||||
foreach ($items AS $item)
|
||||
gpluspost_feeditem($item["id"], $uid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue