mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 21:46:22 +05:30
Don't cache the 404 page
This commit is contained in:
parent
190b712371
commit
cf5ad2da16
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue