Skip to content

Commit

Permalink
[Router] Discard in-memory cache of routes when writing the file-base…
Browse files Browse the repository at this point in the history
…d cache
  • Loading branch information
mpdude committed Jul 4, 2024
1 parent 22f15a6 commit 7bec6df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ function (ConfigCacheInterface $cache) {
}

$cache->write($dumper->dump(), $this->getRouteCollection()->getResources());
unset(self::$cache[$cache->getPath()]);
}
);

Expand Down Expand Up @@ -325,6 +326,7 @@ function (ConfigCacheInterface $cache) {
$dumper = $this->getGeneratorDumperInstance();

$cache->write($dumper->dump(), $this->getRouteCollection()->getResources());
unset(self::$cache[$cache->getPath()]);
}
);

Expand Down

0 comments on commit 7bec6df

Please sign in to comment.