remove eval{} from caching code
This commit is contained in:
parent
841e9d5784
commit
165be5b389
22 changed files with 59 additions and 59 deletions
|
|
@ -249,7 +249,7 @@ sub view {
|
|||
|| ($versionTag && $versionTag->getId eq $self->tagId);
|
||||
my $cacheKey = $self->getWwwCacheKey('view', $calledAsWebMethod);
|
||||
unless ($noCache) {
|
||||
my $out = eval { $session->cache->get( $cacheKey )};
|
||||
my $out = $session->cache->get( $cacheKey );
|
||||
return $out if $out;
|
||||
}
|
||||
my $output = $self->usePacked
|
||||
|
|
@ -262,7 +262,7 @@ sub view {
|
|||
}
|
||||
WebGUI::Macro::process($session,\$output);
|
||||
unless ($noCache) {
|
||||
eval { $session->cache->set( $cacheKey, $output, $self->cacheTimeout) };
|
||||
$session->cache->set( $cacheKey, $output, $self->cacheTimeout);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue