TF-4274 Avoid clearing all caches on refresh for non‑web platforms

This commit is contained in:
dab246
2026-01-28 16:42:53 +07:00
committed by Dat H. Pham
parent 4d77018027
commit 18d9a47431
6 changed files with 21 additions and 15 deletions
@@ -254,7 +254,11 @@ class LoginController extends ReloadableController {
SmartDialog.dismiss();
if (PlatformInfo.isWeb) {
await cachingManager.clearAllEmailAndStateCache();
try {
await cachingManager.clearAllEmailAndStateCache();
} catch (e) {
logWarning('$runtimeType::handleReloaded: Failed to clear cache: $e');
}
}
popAndPush(