remove eval{} from caching code
This commit is contained in:
parent
841e9d5784
commit
165be5b389
22 changed files with 59 additions and 59 deletions
|
|
@ -92,7 +92,7 @@ sub www_flushCache {
|
|||
return $session->privilege->adminOnly unless canView($session);
|
||||
|
||||
# Flush the cache
|
||||
eval{$session->cache->flush};
|
||||
$session->cache->flush;
|
||||
|
||||
return www_manageCache($session);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -736,7 +736,7 @@ sub www_saveSettings {
|
|||
$session->db->write(
|
||||
"UPDATE userProfileData SET showMessageOnLoginSeen=0"
|
||||
);
|
||||
eval{$session->cache->flush};
|
||||
$session->cache->flush;
|
||||
}
|
||||
|
||||
return www_editSettings($session, { errors => \@errors, message => $i18n->get("editSettings done") });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue