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
|
|
@ -25,6 +25,7 @@
|
||||||
same name.
|
same name.
|
||||||
- fix: metadata (WebGUI Help). Removed mention of the RawHeadTags macro
|
- fix: metadata (WebGUI Help). Removed mention of the RawHeadTags macro
|
||||||
from the Metadata help.
|
from the Metadata help.
|
||||||
|
- WebGUI::Session::Stow now warns if set() is called when cache is disabled
|
||||||
|
|
||||||
|
|
||||||
7.1.2
|
7.1.2
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,8 @@ The value of the stow variable. Any scalar or reference.
|
||||||
|
|
||||||
sub set {
|
sub set {
|
||||||
my $self = shift;
|
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 $name = shift;
|
||||||
my $value = shift;
|
my $value = shift;
|
||||||
return undef unless ($name);
|
return undef unless ($name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue