Removed all caching code. This seems to fix the apache

crashing problem.  Needs others to double check and
review.
This commit is contained in:
Colin Kuskie 2008-07-21 23:41:04 +00:00
parent 1031883fbf
commit 23316d60dd
2 changed files with 9 additions and 17 deletions

View file

@ -28,7 +28,6 @@ These subroutines are available from this package:
readonly cart => my %cart;
private properties => my %properties;
private skuCache => my %skuCache;
#-------------------------------------------------------------------
@ -101,7 +100,7 @@ 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;
#undef $self;
return undef;
}
@ -175,13 +174,7 @@ sub getSku {
my ($self) = @_;
my $id = ref $self;
my $asset = '';
if (exists $skuCache{$id}{$self->get("assetId")}) {
$asset = $skuCache{$id}{$self->get("assetId")};
}
else {
$asset = WebGUI::Asset->newByDynamicClass($self->cart->session, $self->get("assetId"));
$skuCache{$id}{$self->get("assetId")} = $asset;
}
$asset = WebGUI::Asset->newByDynamicClass($self->cart->session, $self->get("assetId"));
$asset->applyOptions($self->get("options"));
return $asset;
}