flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

Cache files are not being removed in current pub release

Open js2702 opened this issue 1 year ago • 7 comments

🐛 Bug Report

The recent bug fix in the commit #469 does actually fix a serious bug which has been in the library for two years where the cache files are neved cleaned up because the file.exists() doesn't point to the correct file. The fix has been merged but the release in pub.dev is missing.

There are several issues about this behaviour that have been reported for quite some time.

#377, #452, #446

@mvanbeusekom Sorry for the ping but I believe this is a serious fix missing.

js2702 avatar Dec 09 '24 12:12 js2702

Could you please push a new release? Our users reported cache sized of 30GB in some cases

escamoteur avatar Dec 12 '24 15:12 escamoteur

Any update ?

suli1 avatar Jan 02 '25 08:01 suli1

For the time being pin the version in your pubspec.yaml to the current git commit:

  flutter_cache_manager:
    git:
      url: https://github.com/Baseflow/flutter_cache_manager.git
      path: flutter_cache_manager
      ref: "54904e4"

mikefaust-jm avatar Jan 02 '25 16:01 mikefaust-jm

This is a super important issue please take a look at it @mvanbeusekom

gokturkDev avatar Jan 03 '25 08:01 gokturkDev

Is this library abandoned @mvanbeusekom? Please mark it as archive-only or consider transferring the ownership as its dependant on so many people

gokturkDev avatar Feb 05 '25 12:02 gokturkDev

For the time being pin the version in your pubspec.yaml to the current git commit:

flutter_cache_manager: git: url: https://github.com/Baseflow/flutter_cache_manager.git path: flutter_cache_manager ref: "54904e4"

This is still not working for me by the way, the files are not deleted after stalePeriod has passed. I'm testing by setting it to a minute, not sure if there's some kind of lower limit on it

ChiaraMC avatar Feb 11 '25 12:02 ChiaraMC

Also interested in seeing this issue resolved. Can a new version be published with the fix?

Pointing to the specific commit doesn't seem to play nicely with cached_network_image

Thanks!

kirstenkoa avatar Mar 25 '25 21:03 kirstenkoa

This library is downloaded by a lot of developers each day/month. At the very least, this should be fixed. It's almost 1 year since this has been pushed, but a new version hasn't been released and we're left with applications which take continuously growing space.

HeftyCoder avatar Oct 23 '25 20:10 HeftyCoder