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

Wrong macOS cache path locations for non-sandboxed apps #81

Closed
nekrich opened this issue Jan 20, 2025 · 4 comments
Closed

Wrong macOS cache path locations for non-sandboxed apps #81

nekrich opened this issue Jan 20, 2025 · 4 comments

Comments

@nekrich
Copy link

nekrich commented Jan 20, 2025

Hi.

If the macOS app is not sandboxed, NSSearchPathForDirectoriesInDomains returns paths in the ~/Library (Application Support, Caches...), and CachingManager creates a directory ~/Library/Application Support/GrowthBook-Cache with a FeatureCache.txt file in it.

Unfortunately, CachingManager has no interface to change the cache directory with a path string or URL that will not be linked to the root ~/Library. And since filenames are hardcoded too and we can't add path to the filenames.

@vazarkevych
Copy link
Collaborator

Hi @nekrich. PLease let us check that. We will write asap.

@nekrich
Copy link
Author

nekrich commented Jan 20, 2025

@vazarkevych , I forgot to mention that this will lead to the situation when 2 non-sandboxed apps with integrated GrowthBook SDK use the same file on a machine, and the cache state will be wrong.

@vazarkevych
Copy link
Collaborator

Thank you @nekrich. It will help us to fix that.

@vazarkevych
Copy link
Collaborator

Hi @nekrich. We have added that functionality and pushed that to the release 1.0.65.

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

No branches or pull requests

2 participants