mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Latest header attempt
git-svn-id: file:///svn/phpbb/trunk@2458 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1d445aa3ba
commit
985c0f8b6f
1 changed files with 2 additions and 6 deletions
|
@ -264,7 +264,7 @@ if ( $userdata['session_logged_in'] )
|
||||||
$sql = "UPDATE " . USERS_TABLE . "
|
$sql = "UPDATE " . USERS_TABLE . "
|
||||||
SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
|
SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
|
||||||
WHERE user_id = " . $userdata['user_id'];
|
WHERE user_id = " . $userdata['user_id'];
|
||||||
if ( !($status = $db->sql_query($sql)) )
|
if ( !$db->sql_query($sql) )
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
@ -448,11 +448,7 @@ else
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( getenv('REQUEST_METHOD') != 'POST' )
|
header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
||||||
{
|
|
||||||
header ('Cache-Control: private, no-cache, must-revalidate, pre-check=2, post-check=2, max-age=25');
|
|
||||||
header ('Pragma: no-cache');
|
|
||||||
}
|
|
||||||
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
header ('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
|
||||||
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue