From cf5ad2da16e9a9710c4481bcbacc9b55f8b57a28 Mon Sep 17 00:00:00 2001 From: danpros Date: Wed, 6 May 2020 14:42:51 +0700 Subject: [PATCH] Don't cache the 404 page --- system/includes/dispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/includes/dispatch.php b/system/includes/dispatch.php index 18606c3..ad22398 100644 --- a/system/includes/dispatch.php +++ b/system/includes/dispatch.php @@ -366,7 +366,7 @@ function render($view, $locals = null, $layout = null) ob_start(); require $layout; } - if (!$login) { + if (!$login && $view != '404') { if (!file_exists($cachefile)) { if (config('cache.timestamp') == 'true') { echo "\n" . '';