]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
New fields for the term table, improved query for the tag search. Changed the cache...
[friendica.git] / include / items.php
index b698a0cd381f7a10e88dffc7281f5e35022132b8..8f9eb5aa6454353d78bb803de1ea7c5b831485e3 100644 (file)
@@ -1346,6 +1346,9 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa
                return 0;
        }
 
+       // Fill the cache field
+       put_item_in_cache($arr);
+
        call_hooks('post_remote',$arr);
 
        if(x($arr,'cancel')) {
@@ -1478,9 +1481,6 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa
        // in it.
        if (!$deleted AND !$dontcache) {
 
-               // Store the fresh generated item into the cache
-               put_item_in_cache($arr);
-
                $r = q('SELECT * FROM `item` WHERE id = %d', intval($current_post));
                if (count($r) == 1) {
                        call_hooks('post_remote_end', $r[0]);