Browse Source

Don't cache the 404 page

pull/400/head
danpros 5 years ago
parent
commit
cf5ad2da16
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      system/includes/dispatch.php

+ 1
- 1
system/includes/dispatch.php View File

@ -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" . '<!-- Cached page generated on '.date('Y-m-d H:i:s').' -->';


Loading…
Cancel
Save