Dies when XDG cache directory not present. #7

Open
pjf opened this Issue Feb 28, 2013 · 0 comments

1 participant

@pjf
Owner

Currently the code always wants a cache, and it always wants it in the XDG approved location. If that can't be created (because a parent directory doesn't exist), then we die on object creation:

Can't mkdir('/home/pjf/.cache/webservice-idonethis-perl'): No such file or directory at /home/pjf/perl5/lib/perl5/WebService/Idonethis.pm line 55

Currently the only workaround for this is to make the directory the WS::Idonethis is expecting (eg: mkdir ~/.cache), however it would be nice to allow for cacheless running (which will always require a login) or for the cache directory to be specified elsewhere (possibly via an object, so we can use things like CHI).

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@pjf pjf added a commit that referenced this issue Feb 28, 2013
@pjf Document GH #7 - Cache directory needed. fd1c377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment