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

XDG compatibility of cache #2797

Open
kodebach opened this issue Jun 18, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@kodebach
Copy link
Contributor

commented Jun 18, 2019

Simple question: Is there any way to tell the cache plugin to use $XDG_CACHE_HOME/elektra instead of ~/.cache/elektra?

@mpranj

This comment has been minimized.

Copy link
Member

commented Jun 18, 2019

No, unfortunately not. Currently the resolver resolves the home directory, and the ".cache/elektra" below is hardcoded.

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Jun 19, 2019

Thank you for the question and answer.

As it is a global plugin, we could actually also easily make it configurable via /elektra/cache/path or similar.

And maybe also /elektra/cache/disable, then we would not need tools for caching at all?

rm -rf `kdb get /elektra/cache/path`

sounds a bit dangerous, though. So maybe one tool for cleaning the cache.

@mpranj

This comment has been minimized.

Copy link
Member

commented Jun 19, 2019

Sounds good to me!

So maybe one tool for cleaning the cache.

That should not be a problem, especially if the path is configured in /elektra/cache/path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.