Clean up page caching a bit.
This commit is contained in:
parent
8617c36ea2
commit
a93daa60bf
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
session_start();
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (600)) . " GMT");
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Pragma: cache");
|
||||
|
||||
|
@ -115,7 +115,7 @@ if ($message) {
|
|||
$subthread = thread_getsubthreadids($message->header->id, $thread);
|
||||
if (! $subthread) {
|
||||
echo '<center>Group is rebuilding... Please try again later</center>';
|
||||
file_put_contents($debug_log, "\n" . format_log_date() . " " . $config_name . " GROUP ERROR: ".$group." may need repair", FILE_APPEND);
|
||||
file_put_contents($debug_log, "\n" . format_log_date() . " " . $config_name . " GROUP ERROR: " . $group . " may need repair", FILE_APPEND);
|
||||
exit();
|
||||
}
|
||||
if ($thread_articles == false) {
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
session_start();
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Pragma: cache");
|
||||
|
||||
$_SESSION['isframed'] = 1;
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<?php
|
||||
session_start();
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (600)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (120)) . " GMT");
|
||||
header("Cache-Control: max-age=120");
|
||||
header("Pragma: cache");
|
||||
|
||||
/*
|
||||
* rocksolid overboard - overboard for rslight
|
||||
* Download: https://news.novabbs.com/getrslight
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
session_cache_limiter('public');
|
||||
session_start();
|
||||
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (600)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (120)) . " GMT");
|
||||
header("Cache-Control: max-age=120");
|
||||
header("Pragma: cache");
|
||||
|
||||
include "config.inc.php";
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
session_start();
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT");
|
||||
header("Cache-Control: max-age=100");
|
||||
header("Pragma: cache");
|
||||
|
||||
$_SESSION['group'] = $_SERVER['REQUEST_URI'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue