cacheDir

cacheDir: undefined | string

Root of the directory holding all the files that iTwin.js caches

  • If not specified at startup a platform specific default is used -
    • Windows: $(HOMEDIR)/AppData/Local/iModelJs/
    • Mac/iOS: $(HOMEDIR)/Library/Caches/iModelJs/
    • Linux: $(HOMEDIR)/.cache/iModelJs/ where $(HOMEDIR) is documented here
  • if specified, ensure it is set to a folder with read/write access.
  • Sub-folders within this folder organize various caches -
    • bc/ -> Briefcases
    • appSettings/ -> Offline application settings (only relevant in native applications)
    • etc.

Defined in

Last Updated: 20 June, 2023