Skip to content

Cache issue on shared hosting #38

@WebUnknown

Description

@WebUnknown

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions