Use "last-item" in the contact table instead of an expensive sql query

This commit is contained in:
Michael Vogel 2016-10-14 05:45:32 +00:00
commit e5c7ce0902
8 changed files with 148 additions and 56 deletions

View file

@ -875,6 +875,8 @@ function item_post(&$a) {
$datarray["id"] = $post_id;
item_set_last_item($datarray);
// update filetags in pconfig
file_tag_update_pconfig($uid,$categories_old,$categories_new,'category');