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

Document cacheDirectory behaviour #4149

Merged
merged 1 commit into from Sep 7, 2020

Conversation

alfredbez
Copy link
Contributor

See

psalm/src/Psalm/Config.php

Lines 869 to 875 in 8c74235

if (isset($config_xml['cacheDirectory'])) {
$config->cache_directory = (string)$config_xml['cacheDirectory'];
} elseif ($user_cache_dir = (new Xdg())->getHomeCacheDir()) {
$config->cache_directory = $user_cache_dir . '/psalm';
} else {
$config->cache_directory = sys_get_temp_dir() . '/psalm';
}

And https://github.com/dnoegel/php-xdg-base-dir/blob/12f5b94710c8f5b504432d57ce353075fc434339/src/Xdg.php#L78-L84

@muglug muglug merged commit d9d8d28 into vimeo:master Sep 7, 2020
@muglug
Copy link
Collaborator

muglug commented Sep 7, 2020

Thanks!

muglug pushed a commit that referenced this pull request Sep 7, 2020
danog pushed a commit to danog/psalm that referenced this pull request Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants