clarify the documentation on how to configure a cache implementation
authorJos Boumans <kane@cpan.org>
Tue, 27 May 2008 08:49:26 +0000 (08:49 +0000)
committerJos Boumans <kane@cpan.org>
Tue, 27 May 2008 08:49:26 +0000 (08:49 +0000)
commitfba82fef07d36e90f9de40804dfe4f737a052148
treebfb336bb1a51d917a25d6e00c00305b8d98f4da8
parent204b2b54f823e7a4ca8c0038a28432d78693bef8
clarify the documentation on how to configure a cache implementation
use the popular cache::memcached::libmemcached as an example
the old code was throwing away the first error when creating a cache instance
(it did so using a list and a hashref as args); if the first failed, the 2nd
call would overwrite the first error. This is now fixed
the calling code wrapped the above code in an eval, and then silently discarded
the return value. This is now no longer the case, as the assumption of the code
was to have a working fallback, which is not currently implemented. This resulted
in a FIXME error on the first request to a controller using a cache->get or cache->set
lib/Catalyst/Plugin/Cache.pm