Skip to content

Disk size gets trimmed to default size on init method #240

Open

Description

@rajeshs73

If my disk size is more than default size, it gets trimmed to default size on initialising PINCache.
Due to that, my images are downloading again and again and getting stored in disk.

I have set the byteLimit to 100MB too.

Activity

  1. rajeshs73 commented on Mar 28, 2019

    @rajeshs73
    Author

    One suggestion would be, Keeping byteLimit as initialising parameter for PINCache.

  2. changed the title [-]Disk size gets trimmed to default size on Init itself[/-] [+]Disk size gets trimmed to default size on init method[/+] on Mar 28, 2019
  3. garrettmoon commented on Jun 11, 2019

    @garrettmoon
    Collaborator

    @rajeshs73 if you set the byteLimit immediately after initialization this shouldn't be an issue in practice (though I agree we should allow setting this on init) because the trimming doesn't happen until the file state is known which takes a while. Have you tried setting the byteLimit immediately after initializing the disk?

  4. rajeshs73 commented on Jun 12, 2019

    @rajeshs73
    Author

    @garrettmoon I did set the byteLimit soon after the initialization. It falls back to default size on app open (mostly 6 out of 10 times)

  5. trungnguyen1791 commented on Sep 7, 2019

    @trungnguyen1791

    Did you solve this problem @rajeshs73?

  6. rajeshs73 commented on Sep 16, 2019

    @rajeshs73
    Author

    Did you solve this problem @rajeshs73?

    No. I haven't.

  7. mycroftcanner commented on Jul 15, 2021

    @mycroftcanner

    Any chance we could fix this?

  8. mycroftcanner commented on Jul 15, 2021

    @mycroftcanner

    @rajeshs73 are you initialising PINCache and setting its configuration from the main thread?

  9. gumbypp commented on Jun 16, 2022

    @gumbypp

    this is fixed by #312, which as on master after the 3.0.3 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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