Skip to content

Instantly share code, notes, and snippets.

@kichiemon
Last active April 1, 2020 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kichiemon/a94f838e638fb99cb2348783987ffb1c to your computer and use it in GitHub Desktop.
Save kichiemon/a94f838e638fb99cb2348783987ffb1c to your computer and use it in GitHub Desktop.
// The default cache size threshold is 100 MB. Configure "cacheSizeBytes"
// for a different threshold (minimum 1 MB) or set to "FirestoreCacheSizeUnlimited"
// to disable clean-up.
let settings = Firestore.firestore().settings
settings.cacheSizeBytes = FirestoreCacheSizeUnlimited
Firestore.firestore().settings = settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment