Skip to content

Commit d0a2005

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [Router] Discard in-memory cache of routes when writing the file-based cache [Security] Verify Hungarian translation force HTTP 1.1 for Mailgun API requests [String] Revert "Fixed u()->snake(), b()->snake() and s()->snake() methods" normalize underscores in snake() [Security][Validator] Added missing Portuguese(pt) translations Fixes #54550 some pt_BR translations Fix MockArraySessionStorage to generate more conform ids Bump Symfony version to 5.4.42 Update VERSION for 5.4.41 Update CONTRIBUTORS for 5.4.41 Update CHANGELOG for 5.4.41
2 parents 8a40d0f + c99c74b commit d0a2005

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ function (ConfigCacheInterface $cache) {
272272
}
273273

274274
$cache->write($dumper->dump(), $this->getRouteCollection()->getResources());
275+
unset(self::$cache[$cache->getPath()]);
275276
}
276277
);
277278

@@ -301,6 +302,7 @@ function (ConfigCacheInterface $cache) {
301302
$dumper = $this->getGeneratorDumperInstance();
302303

303304
$cache->write($dumper->dump(), $this->getRouteCollection()->getResources());
305+
unset(self::$cache[$cache->getPath()]);
304306
}
305307
);
306308

0 commit comments

Comments
 (0)