From 99a3592eae04eff03fd24574f292a1277f53663d Mon Sep 17 00:00:00 2001 From: Linty Date: Wed, 30 Oct 2024 10:27:11 +0100 Subject: [PATCH] fixes #2258 add invalidate_user_cache in ws_images_deleteOrphans method --- include/ws_functions/pwg.images.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ws_functions/pwg.images.php b/include/ws_functions/pwg.images.php index 72473bcbf..7d62f0957 100644 --- a/include/ws_functions/pwg.images.php +++ b/include/ws_functions/pwg.images.php @@ -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,