[Rspamd] Disable 304 until SOGO_CONTACT triggers an update, needs rework
parent
26e2a1230a
commit
c9a4715dfc
|
@ -26,6 +26,7 @@ catch (PDOException $e) {
|
|||
}
|
||||
|
||||
// Check if db changed and return header
|
||||
/*
|
||||
$stmt = $pdo->prepare("SELECT MAX(UNIX_TIMESTAMP(UPDATE_TIME)) AS `db_update_time` FROM information_schema.tables
|
||||
WHERE (`TABLE_NAME` = 'filterconf' OR `TABLE_NAME` = 'settingsmap')
|
||||
AND TABLE_SCHEMA = :dbname;");
|
||||
|
@ -42,6 +43,7 @@ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && (strtotime($_SERVER['HTTP_IF_MO
|
|||
} else {
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s', $db_update_time).' GMT', true, 200);
|
||||
}
|
||||
*/
|
||||
|
||||
function parse_email($email) {
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) return false;
|
||||
|
|
Loading…
Reference in New Issue