Apparently, any item or sku caching causes Apache to die. At this

point, both the itemCache in the Cart and the skuCache in the CartItem
have been removed.
This commit is contained in:
Colin Kuskie 2008-07-22 04:09:04 +00:00
parent 23316d60dd
commit 6086703d49
2 changed files with 0 additions and 9 deletions

View file

@ -37,7 +37,6 @@ These subroutines are available from this package:
readonly session => my %session;
private properties => my %properties;
private error => my %error;
private itemCache => my %itemCache;
private addressBookCache => my %addressBookCache;
#-------------------------------------------------------------------
@ -191,7 +190,6 @@ sub delete {
my ($self) = @_;
$self->empty;
$self->session->db->write("delete from cart where cartId=?",[$self->getId]);
#delete $itemCache{ref $self};
return undef;
}
@ -208,7 +206,6 @@ sub empty {
foreach my $item (@{$self->getItems}) {
$item->remove;
}
#$itemCache{ref $self} = {};
}
#-------------------------------------------------------------------
@ -300,11 +297,7 @@ sub getItem {
WebGUI::Error::InvalidParam->throw(error=>"Need an itemId.");
}
my $id = ref $self;
#if (exists $itemCache{$id}{$itemId}) {
#return $itemCache{$id}{$itemId};
#}
my $item = WebGUI::Shop::CartItem->new($self, $itemId);
#$itemCache{$id}{$itemId} = $item;
return $item;
}
@ -633,7 +626,6 @@ sub www_removeItem {
my $self = shift;
my $item = $self->getItem($self->session->form->get("itemId"));
$item->remove;
#delete $itemCache{ref $self}{$item->getId};
return $self->www_view;
}

View file

@ -100,7 +100,6 @@ Removes this item from the cart without calling $sku->onRemoveFromCart which wou
sub delete {
my $self = shift;
$self->cart->session->db->deleteRow("cartItem","itemId",$self->getId);
#undef $self;
return undef;
}