bug fixes
This commit is contained in:
parent
ccff9c7014
commit
ebb6134c2d
27 changed files with 84 additions and 214 deletions
|
|
@ -92,7 +92,7 @@ sub www_flushCache {
|
|||
return $session->privilege->adminOnly unless canView($session);
|
||||
|
||||
# Flush the cache
|
||||
$session->cache->flush;
|
||||
eval{$session->cache->flush};
|
||||
|
||||
return www_manageCache($session);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -726,7 +726,7 @@ sub www_saveSettings {
|
|||
$session->db->write(
|
||||
"UPDATE userProfileData SET showMessageOnLoginSeen=0"
|
||||
);
|
||||
$session->cache->flush;
|
||||
eval{$session->cache->flush};
|
||||
}
|
||||
|
||||
return www_editSettings($session, { errors => \@errors, message => $i18n->get("editSettings done") });
|
||||
|
|
|
|||
|
|
@ -180,9 +180,9 @@ sub www_viewStatistics {
|
|||
my $i18n = WebGUI::International->new($session);
|
||||
my $url = "http://update.webgui.org/latest-version.txt";
|
||||
my $cache = $session->cache;
|
||||
my $version = $cache->get($url);
|
||||
my $version = eval{$cache->get($url)};
|
||||
if (not defined $version) {
|
||||
$version = $cache->setByHttp($url, $url, 43200);
|
||||
$version = eval{$cache->setByHttp($url, $url, 43200)};
|
||||
}
|
||||
chomp $version;
|
||||
$output .= '<table>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue