Hi everyone,
I configured my application to use DBIx::Class::Cursor::Cached
following the guide provied by
Catalyst::TraitFor::Model::DBIC::Schema::Caching
Here is my configuration sample
__PACKAGE__->config->{'Plugin::Cache'}{backend} = {
store => "FastMmap",
share_file => '/tmp/fastmmap',
cache_size => '50m',
unlink_on_exit => 1,
};
<Model::DB>
schema_class SEA::DB
traits Caching
<connect_info>
dsn
user
password
</connect_info>
</Model::DB>
And I set cache time to 60 seconds to view the effect. In
ResultSet/Charge.pm, I have some seach like
my @result = $self->search(
$search,
{ select => ['nn', 'ac', {count => 'nsea'}, {sum => 'nsea'}],
as => [qw/nn ac sea_count total/],
group_by => [qw/nn/],
cache_for => 60,
}
)->all;
Caching seems to be working, but after waiting for more than 60 hours, the
cache result is still there. I am expecting this cache would be refreshed.
Am I missing something?
Thanks.
--
Woosley.Xu
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/