Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Stale period not working properly

Open
#452 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart, flutter
Domain
mobile

Research direction

Start by reproducing the report with flutter_cache_manager 3.3.1, a 60-second stalePeriod, and getFileStream as shown in the issue. Trace the cache cleanup behavior from this usage and verify that cached files are removed after the configured stale period.

Written by the indexing model from the issue text.

Description

` Im using flutter_cache_manager: ^3.3.1 and the stale period its not working properly. its not automatically deleting the files.

final cacheManager = CacheManager(
  Config(
    id,
    stalePeriod: Duration(seconds: 60),
    maxNrOfCacheObjects: 10,
  ),
);

try {
  final fileStream = cacheManager.getFileStream(_syncMusicUrl);

  await for (var response in fileStream) {
    if (response is FileInfo) {
      _cacheMusicPath = response.file.path;

      return true;
    } else if (response is DownloadProgress) {}
  }
  return false;
} catch (error) {
  syncSituation.value = "sync";
  update();
  return false;
} }`
Dominant language
Dart
Stars
810
Forks
510
Avg merge
2d 2h
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Baseflow/flutter_cache_manager

All issues in Baseflow/flutter_cache_manager

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.