Hi,
I am doing some experiments with memcached, hoping to make my web server
faster, however I am wondering if we can use memcached together with
DBIx::Class::Resultset ?
My code is like this:
..
..
unless ( $data = $c->cache->get($cache_key) )
{
$date =
$c->master->resultset('table_name')->search(
\%search_condition,
) ->first;
$c->cache->set( $cache_key, $agent );
}
..
..
When it bypasses the connection to the database and gets the value from the
cache, this error message appears:
Couldn't render template "undef error - Can't call method "source" on an
undefined value at
/usr/lib/perl5/site_perl/5.8/DBIx/Class/ResultSourceHandle.pm line 64.
I am assuming it has something to do with the database connection variables and
stuff, but I am not really sure. Has anyone done any similar experiment ?
Sindharta
---------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]