Stow now warns if set() is called when cache is disabled
This commit is contained in:
parent
b9010b8c07
commit
2675784f14
2 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue