mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
remove redundent UPDATE on session table due to /util.php should make high-traffic sites faster, most likely will not notice the query redunction
This commit is contained in:
parent
97bcd21404
commit
a919e9b280
3 changed files with 15 additions and 6 deletions
|
@ -251,13 +251,12 @@ unset($results);
|
|||
flip_class(array('odd','even'));
|
||||
|
||||
/* Check to see if we need to perform an update */
|
||||
if (! preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
|
||||
if (!preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
|
||||
if (Update::need_update()) {
|
||||
header("Location: " . Config::get('web_path') . "/update.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
// For the XMLRPC stuff
|
||||
$GLOBALS['xmlrpc_internalencoding'] = Config::get('site_charset');
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue