Skip to content

Save SQLite cache database to platform's cache directory #164

@cvb941

Description

@cvb941

Right now, as far as I understand, the SqlNormalizedCacheFactory creates the cache file in the default database locations as decided by SQLDelight.

On Android this means that the .sqlite file is saved in the more permanent databases directory. I think it would be better to save it in the cache directory by default. That way, Clear Cache will delete the Apollo cache too.

This stands for other platforms too, the database could be saved in the respective platform's cache directories. Like these here: https://github.com/psuzn/multiplatform-paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions