Skip to content
Snippets Groups Projects

Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers

Open Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
2 unresolved threads
Open Ben Mullins requested to merge issue/drupal-2845319:2845319-the-highlighting-of into 9.3.x
2 unresolved threads
2 files
+ 62
3
Compare changes
  • Side-by-side
  • Inline
Files
2
  • a4f44cbb
    Issue #3032078 by jrglasgow, dagomar, Berdir, nikitagupta, catch,... · a4f44cbb
    catch authored
    Issue #3032078 by jrglasgow, dagomar, Berdir, nikitagupta, catch, anmolgoyal74, technoveltyco, idebr, ndf, jonas139, nod_: Multiple webheads can cause infinite growth of Twig cache
    
    (cherry picked from commit a59f4db3)
@@ -9,7 +9,7 @@
/**
* Adds the twig_extension_hash parameter to the container.
*
* Parameter twig_extension_hash is a hash of all extension mtimes for Twig
* Parameter twig_extension_hash is a crc32 hash of all extensions for Twig
* template invalidation.
*/
class TwigExtensionPass implements CompilerPassInterface {
@@ -23,8 +23,8 @@ public function process(ContainerBuilder $container) {
$class_name = $container->getDefinition($service_id)->getClass();
$reflection = new \ReflectionClass($class_name);
// We use the class names as hash in order to invalidate on new extensions
// and mtime for every time we change an existing file.
$twig_extension_hash .= $class_name . filemtime($reflection->getFileName());
// and crc32 for every time we change an existing file.
$twig_extension_hash .= $class_name . hash_file('crc32', $reflection->getFileName());
}
$container->setParameter('twig_extension_hash', Crypt::hashBase64($twig_extension_hash));
Loading