Fixed typo in SQL query
This commit is contained in:
parent
a88c9b93c5
commit
efe05d8469
2 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ sub getNamespaceSize {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $expiresModifier = shift || 0;
|
my $expiresModifier = shift || 0;
|
||||||
$self->session->db->write("delete from cache where expires < ?",[time()+$expiresModifier]);
|
$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;
|
return $size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue