diff options
| -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; |