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);
 ?>

Reply via email to