From 2b5cd428747e8bc63b1973116e885f50a20b711d Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 19 Mar 2006 17:39:21 +0000 Subject: [PATCH] better docs and removed roy's comment --- lib/WebGUI/Session/Stow.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Session/Stow.pm b/lib/WebGUI/Session/Stow.pm index 0f0c3c470..c684f323c 100644 --- a/lib/WebGUI/Session/Stow.pm +++ b/lib/WebGUI/Session/Stow.pm @@ -22,7 +22,7 @@ Package WebGUI::Session::Stow =head1 DESCRIPTION -This package allows you to "stow" a scalar or a reference to any other perl structure for the duration of the request. It's sort of like a mini in memory cache that only exists unless $session->close is called. Note that this is NOT supposed to be used as a global variable system. It's simply an in memory cache. +This package allows you to "stow" a scalar or a reference to any other perl structure for the duration of the request. It's sort of like a mini in memory cache that only exists until $session->close is called. It is great to stow stuff that might otherwise have to be requested many times during a single page view, but that you would't want to store in the regular cache. Note that this is NOT supposed to be used as a global variable system. It's simply an in memory cache. =head1 SYNOPSIS @@ -106,8 +106,7 @@ The name of the variable. sub get { my $self = shift; my $var = shift; - # wtf!? This line is breaking stuff, what does stow have to do with caching? - #return undef if $self->session->config->get("disableCache"); + return undef if $self->session->config->get("disableCache"); return $self->{_data}{$var}; }