Skip to content

Commit

Permalink
Speedup copy item action.
Browse files Browse the repository at this point in the history
  • Loading branch information
corentin-soriano committed Sep 19, 2024
1 parent 874bea9 commit 174cfb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -2469,9 +2469,6 @@
'at_copy',
$session->get('user-login')
);
// reload cache table
include_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
updateCacheTable('reload', null);

echo (string) prepareExchangedData(
array(
Expand All @@ -2481,6 +2478,9 @@
),
'encode'
);

// Add new item to cache table.
updateCacheTable('add_value', (int) $newItemId);
} else {
// no item
echo (string) prepareExchangedData(
Expand Down

0 comments on commit 174cfb9

Please sign in to comment.