Skip to content

Commit be80db3

Browse files
[HttpKernel] Don't cache "not-fresh" state
1 parent 350e110 commit be80db3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,9 @@ protected function initializeContainer()
514514

515515
try {
516516
if (file_exists($cachePath) && \is_object($this->container = include $cachePath)
517-
&& (!$this->debug || (self::$freshCache[$k = $cachePath.'.'.$this->environment] ?? self::$freshCache[$k] = $cache->isFresh()))
517+
&& (!$this->debug || (self::$freshCache[$cachePath] ?? $cache->isFresh()))
518518
) {
519+
self::$freshCache[$cachePath] = true;
519520
$this->container->set('kernel', $this);
520521
error_reporting($errorLevel);
521522

0 commit comments

Comments
 (0)