Hi,<br>
<br>
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 ?<br>
<br>
My code is like this:<br>
..<br>
..<br>
unless ( $data = $c->cache->get($cache_key) ) <br>
{<br>
$date =<br>
$c->master->resultset('table_name')->search( <br>
\%search_condition,<br>
) ->first;<br>
$c->cache->set( $cache_key, $agent );<br>
}<br>
..<br>
..<br>
<br>
When it bypasses the connection to the database and gets the value from the cache, this error message appears:<br>
<br>
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.<br>
<br>
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 ?<br>
<br>
Sindharta<br>
<br>
<br>
<div style="line-height: 0; width: 0; height: 5px; clear: both;"> </div>
<p> 
<hr size=1><a href=http://pr.mail.yahoo.co.jp/toolbar/ target="new">Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar</a><br>