Subject: | FileCache's cache_root option to new is totally unreliable |
It seems hard to swallow, but if you add ({cache_root => $tmpdir}) to the FileCache constructor in the tests, you'll see that it is used once, then discarded.
This appears to be because many operations, like _Get_Cache, never look at $self, but use Static_Params to see whether a root was passed in on a per-method basis. I have tried to fix this on github:
https://github.com/rjbs/Cache-Cache/tree/cache-root
I'm not sure whether that really fixes it. It seems like a hot mess.
--
rjbs