Skip to content

emptyCache not work after upgrade 3.3.1 -> 3.4.1 #471

@nuxwork

Description

@nuxwork

🐛 Bug Report

Expected behavior

can clear all cached files after call emptyCache

Reproduction steps

cacheManager.emptyCache();

Configuration

Version: 3.3.1

Future<void> _removeCachedFile(CacheObject cacheObject, List<int> toRemove) async {
...
final file = await fileSystem.createFile(cacheObject.relativePath);
...
}

Version: 3.4.1

Future<void> _removeCachedFile(CacheObject cacheObject, List<int> toRemove) async {
...
final file = io.File(cacheObject.relativePath);  // bug: file always not exists
...
}

Platform:

  • 📱 iOS
  • 🤖 Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions