Skip to content

iOS cache not entirely cleared when calling clearAll() #6375

Closed
@jvanderwee

Description

@jvanderwee

Version

4.1.1

Summary

Two possible issues:

  • request is cached for mutations with .doNotStore(true)
  • request is still in cache after calling apolloClient.apolloStore.clearAll()

Steps to reproduce the behavior

  1. Call a mutation with .doNotStore(true), e.g.
apolloClient
    .mutation(FooMutation())
    .doNotStore(true)
    .execute()
  1. Grep ~/Library/Developer/CoreSimulator/Devices/<id>/data/Containers/Data/Application/<id>/Library/Caches/<id>/Cache.db-wal for "mutation"
  • mutation request is present in cache
  1. Call apolloClient.apolloStore.clearAll()
  2. Grep as above
  • mutation request still present in cache

Logs

(Your logs here)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions