chunk deletion wasn't working properly

This commit is contained in:
JT Smith 2006-02-28 21:33:36 +00:00
parent 75aa3b2468
commit 8c6b0e3fc3

View file

@ -66,7 +66,8 @@ A partial composite key to remove.
sub deleteChunk {
my $self = shift;
$self->session->db->write("delete from cache where namespace=? and cachekey like ?",[$self->{_namespace}, $self->{_key}.'%']);
my $key = $self->parseKey(shift);
$self->session->db->write("delete from cache where namespace=? and cachekey like ?",[$self->{_namespace}, $key.'%']);
}
#-------------------------------------------------------------------