Clear cached WI on deletion Fixes #3672
| @@ -3542,6 +3542,10 @@ export async function deleteWorldInfo(worldInfoName) { | ||
| 3542 | 3542 | return false; |
| 3543 | 3543 | } |
| 3544 | 3544 | |
| 3545 | + if (worldInfoCache.has(worldInfoName)) { | |
| 3546 | + worldInfoCache.delete(worldInfoName); | |
| 3547 | + } | |
| 3548 | + | |
| 3545 | 3549 | const existingWorldIndex = selected_world_info.findIndex((e) => e === worldInfoName); |
| 3546 | 3550 | if (existingWorldIndex !== -1) { |
| 3547 | 3551 | selected_world_info.splice(existingWorldIndex, 1); |