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.
Document GH #7 - Cache directory needed.