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

Cache issue on shared hosting #38

Open
WebUnknown opened this issue Jun 10, 2015 · 0 comments
Open

Cache issue on shared hosting #38

WebUnknown opened this issue Jun 10, 2015 · 0 comments

Comments

@WebUnknown
Copy link

Great package, just found a small gotcha when moving to a shared host. The underlying Google code uses a file based cache that can be problematic if you have permissioning issues writing to the default temporary directory.

I worked around it by changing line 139 \vendor\google\apiclient\src\Google\Config.php to fix a location with write access in my hosting environment:

E.G. CHANGE THIS: 'directory' => sys_get_temp_dir() . '/Google_Client'
TO THIS: 'directory' => 'myThang/Google_Client'

Not elegant but I couldn't figure out how to do it via the wrapper. Adding a way to inject config values would be ace.

Thanks again for a great package, and for your Laravel Twitter wrapper - both getting heavy use by me!

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

1 participant