remove eval{} from caching code
This commit is contained in:
parent
841e9d5784
commit
165be5b389
22 changed files with 59 additions and 59 deletions
|
|
@ -2656,7 +2656,7 @@ sub www_export {
|
|||
push(@fieldLabels,@metaDataFields)
|
||||
}
|
||||
|
||||
$query = eval{$session->cache->get("query_".$thingId)};
|
||||
$query = $session->cache->get("query_".$thingId);
|
||||
$sth = $session->db->read($query);
|
||||
|
||||
### Loop through the returned structure and put it through Text::CSV
|
||||
|
|
@ -3301,7 +3301,7 @@ sequenceNumber');
|
|||
}
|
||||
|
||||
# store query in cache for thirty minutes
|
||||
eval{$self->session->cache->set("query_".$thingId, $query, 30*60)};
|
||||
$self->session->cache->set("query_".$thingId, $query, 30*60);
|
||||
|
||||
$paginatePage = $self->session->form->param('pn') || 1;
|
||||
$currentUrl = $self->session->url->append($currentUrl, "orderBy=".$orderBy) if $orderBy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue