Fixed typo in SQL query

This commit is contained in:
Wouter van Oijen 2006-04-28 21:43:41 +00:00
parent a88c9b93c5
commit efe05d8469
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ sub get {
#-------------------------------------------------------------------
=head2 new ( session, key, [ namepsace ] )
=head2 new ( session, key, [ namespace ] )
The new method will return a handler for the configured caching mechanism. Defaults to WebGUI::Cache::FileCache. You must override this method when building your own cache plug-in.

View file

@ -118,7 +118,7 @@ sub getNamespaceSize {
my $self = shift;
my $expiresModifier = shift || 0;
$self->session->db->write("delete from cache where expires < ?",[time()+$expiresModifier]);
my ($size) = $self->session->db->quickArray("select sum(size) from cache where namepsace=?",[$self->{_namespace}]);
my ($size) = $self->session->db->quickArray("select sum(size) from cache where namespace=?",[$self->{_namespace}]);
return $size;
}