Clean up page caching a bit.

This commit is contained in:
Retro_Guy 2023-09-22 03:33:24 -07:00
parent 8617c36ea2
commit a93daa60bf
5 changed files with 13 additions and 6 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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

View File

@ -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";

View File

@ -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'];