Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a persistent FMU cache #11

Closed
kyllingstad opened this issue Aug 1, 2019 · 1 comment · Fixed by #30 or open-simulation-platform/libcosim#388
Closed

Use a persistent FMU cache #11

kyllingstad opened this issue Aug 1, 2019 · 1 comment · Fixed by #30 or open-simulation-platform/libcosim#388
Assignees
Labels
enhancement New feature or request

Comments

@kyllingstad
Copy link
Member

To avoid having to unzip the same FMUs over and over again, CSE CLI should use cse::fmi::importer with a persistent cache directory. A clean-cache subcommand should also be added.

I propose to use $HOME/.cse/fmu-cache on Linux and %LOCALAPPDATA%\CSE\fmu-cache on Windows. (These could be shared by other CSE applications too.)

@kyllingstad kyllingstad added the enhancement New feature or request label Aug 1, 2019
@kyllingstad kyllingstad self-assigned this Sep 27, 2019
@kyllingstad
Copy link
Member Author

Further investigation suggest that a cse directory located under one of the following would be more appropriate:

  • *NIX systems (except OS X): $XDG_CACHE_HOME, defaulting to $HOME/.cache (source)
  • Windows: %LocalAppData%, defaulting to %UserProfile%/AppData/Local (source)
  • OS X: $HOME/Library/Caches (source)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant