[Catalyst] Catalyst::Model::CDBI::Sweet + Cache::FastMmap - does
it work for you?
Matt S Trout
dbix-class at trout.me.uk
Mon Nov 14 19:09:50 CET 2005
On Mon, Nov 14, 2005 at 03:25:16AM +0100, Roland Moriz wrote:
> Hello,
>
> I've tried to use the mentioned combination but every time I
> modify/update an sweet object I'm getting the following error:
>
> 'Caught exception "not a reference at
> /usr/local/lib/perl/5.8.7/Cache/FastMmap.pm line 570"'
>
> I have no idea why this happens. In my Sweet cdbi model I use the
> following to enable caching as described in the pod:
>
> __PACKAGE__->cache(
> Cache::FastMmap->new(
> share_file => '/tmp/cdbi',
> expire_time => 3600
> )
> );
>
> Without Sweet's caching everything works fine!
>
> Maybe this is relevant: I use FastMmap also as caching backend for
> Authentication::CDBI - but with a different share_file and with no
> relationship to the failing object.
>
> Someone maybe has a working setup or experience on this?
Bah. The problem here is that unlike all the other Cache backends, FastMmap
won't store anything that isn't a reference.
This has been reported before (by merlyn, no less); I believe he sorted it
by creating a decorator for Cache::FastMmap that made it behave sanely.
Ideas, workarounds and patches welcome.
--
Matt S Trout Specialists in Perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list