Skip to content

How to check if cache is actually operational? #10

@FastNinja

Description

@FastNinja

I need to verify that app actually using cache when it is supposed to use cache instead of downloading the file.

I am not sure how exactly do that?
Options:

  • some kind of debugInfo might be helpful that can be switched on or off?
  • Callback (crazy idea):
   image: new CachedNetworkImageProvider(imageUrl, 
              onImageProvided: (imageFile, fromCache) => 
                  { /*
                       here developers can do something with file, or log, or alternate for how long it 
 should stay etc...
                    */
                    } ),

but basically I want to see somewhere:

 loaded from from URL 'www.site.com/file.png',
 used file from cache 'www.site.com/file.png',
...
...
used file from cache 'www.site.com/file.png',

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