Closed Zelfapp closed 2 years ago
Hey @Zelfapp Would you mind sharing the version of the package you're using? A change was made in https://github.com/Baseflow/flutter_cache_manager/pull/323 and landed in v3.1.2 which awaits file removal. All prior versions complete before the file is actually removed and so, the file removal happens in the 'background'.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Testing on Android 21, target SDK 31.
clearCache
works just fine. Physical files are deleted from cache. However,removeFile
never removes a file from the cache.My expectation was that calling
removeFile
and passing thekey
that was used when caching the file would delete the file reference in the database and also the physical file in the cache, just likeclearCache
, but for a single file. Is this not correct?I've had to resort to deleting the file using dart's io rather than trying to rely on
removeFile
. Here's my code. What am I missing?