From efe05d8469b907a8799023e1cf9b99a534464df2 Mon Sep 17 00:00:00 2001 From: Wouter van Oijen Date: Fri, 28 Apr 2006 21:43:41 +0000 Subject: [PATCH] Fixed typo in SQL query --- lib/WebGUI/Cache.pm | 2 +- lib/WebGUI/Cache/Database.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Cache.pm b/lib/WebGUI/Cache.pm index 8641f2d42..a5b50614a 100644 --- a/lib/WebGUI/Cache.pm +++ b/lib/WebGUI/Cache.pm @@ -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. diff --git a/lib/WebGUI/Cache/Database.pm b/lib/WebGUI/Cache/Database.pm index 9cd71b91a..7ca759096 100644 --- a/lib/WebGUI/Cache/Database.pm +++ b/lib/WebGUI/Cache/Database.pm @@ -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; }