[web-news] master: Cache home page for 90 days(ish)
| From: | Derick Rethans | Date: | Tue, 06 Oct 2026 12:03:51 +0000 |
| Subject: | [web-news] master: Cache home page for 90 days(ish) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-34087@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2026-10-06T13:03:43+01:00
Commit: https://github.com/php/web-news/commit/bd8591c7bf1bc169f87f207b2858b80f15ea4d6e
Raw diff: https://github.com/php/web-news/commit/bd8591c7bf1bc169f87f207b2858b80f15ea4d6e.diff
Cache home page for 90 days(ish)
Changed paths:
M index.php
Diff:
diff --git a/index.php b/index.php
index c6008be..8a6a5f8 100644
--- a/index.php
+++ b/index.php
@@ -15,7 +15,7 @@
error($e->getMessage());
}
-head();
+head(cacheTimeSeconds: 60 * 60 * 24 * 90);
$CLEAN_DISPLAY_NNTP_HOST = clean(($NNTP_HOST == 'localhost') ?
'news-web.php.net' : $NNTP_HOST);
?>