Stow now warns if set() is called when cache is disabled

This commit is contained in:
Doug Bell 2006-10-30 21:02:15 +00:00
parent b9010b8c07
commit 2675784f14
2 changed files with 3 additions and 0 deletions

View file

@ -163,6 +163,8 @@ The value of the stow variable. Any scalar or reference.
sub set {
my $self = shift;
$self->session->errorHandler->warn('Stow->set() is being called but cache has been disabled')
if $self->session->config->get("disableCache");
my $name = shift;
my $value = shift;
return undef unless ($name);