From a5d70e29522b9ebe74231d679dce58ce915d8a32 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 1 Mar 2026 22:49:56 -0500 Subject: do cache blog index page --- src/web/_views/head.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/web/_views/head.php b/src/web/_views/head.php index 281ebc5..b993489 100644 --- a/src/web/_views/head.php +++ b/src/web/_views/head.php @@ -2,9 +2,9 @@ req['app']; - $non_cached_apps = ['blog']; + $is_blog_post = $current_app == 'blog' && ROUTER->req['slug'] != 'index'; - if (ENVIRONMENT == 'production' && !in_array($current_app, $non_cached_apps)) { + if (ENVIRONMENT == 'production' && !$is_blog_post) { $cache_seconds = 300; if ($current_app == 'bucket') { $cache_seconds = 86400; -- cgit v1.2.3-freya