analytics-l4 icon indicating copy to clipboard operation
analytics-l4 copied to clipboard

Cache issue on shared hosting

Open WebUnknown opened this issue 10 years ago • 0 comments

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!

WebUnknown avatar Jun 10 '15 09:06 WebUnknown