mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
fixes #2258 add invalidate_user_cache in ws_images_deleteOrphans method
This commit is contained in:
parent
05f70930eb
commit
99a3592eae
1 changed files with 1 additions and 0 deletions
|
@ -2885,6 +2885,7 @@ function ws_images_deleteOrphans($params, $service)
|
|||
|
||||
$orphan_ids_to_delete = array_slice(get_orphans(), 0, $params['block_size']);
|
||||
$deleted_count = delete_elements($orphan_ids_to_delete, true);
|
||||
invalidate_user_cache();
|
||||
|
||||
return array(
|
||||
'nb_deleted' => $deleted_count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue