diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 84a1d3e4e..9a9927397 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -25,6 +25,7 @@ same name. - fix: metadata (WebGUI Help). Removed mention of the RawHeadTags macro from the Metadata help. + - WebGUI::Session::Stow now warns if set() is called when cache is disabled 7.1.2 diff --git a/lib/WebGUI/Session/Stow.pm b/lib/WebGUI/Session/Stow.pm index 059881576..91a04a1b6 100644 --- a/lib/WebGUI/Session/Stow.pm +++ b/lib/WebGUI/Session/Stow.pm @@ -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);