analytics-l4
analytics-l4 copied to clipboard
Cache issue on shared hosting
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!