diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-03-01 22:49:56 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-03-01 22:49:56 -0500 |
| commit | a5d70e29522b9ebe74231d679dce58ce915d8a32 (patch) | |
| tree | 8b8fa2eb106462f157e5145fb41eebd1c770165b /src/web/_views/head.php | |
| parent | fix scrollbar shifting page layout (diff) | |
| download | website-a5d70e29522b9ebe74231d679dce58ce915d8a32.tar.gz website-a5d70e29522b9ebe74231d679dce58ce915d8a32.tar.bz2 website-a5d70e29522b9ebe74231d679dce58ce915d8a32.zip | |
do cache blog index page
Diffstat (limited to '')
| -rw-r--r-- | src/web/_views/head.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <?php /* Html cache headers */ $current_app = ROUTER->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; |