commit 277884b5790716ad5458043085c99da8bc45aee3
parent c6513f3eb373c11ea8e930a0bbc20debb55969be
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Tue, 14 Oct 2025 15:13:07 +0200
get disabling cache to work again
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/turnstile.module b/turnstile.module
@@ -155,7 +155,7 @@ function turnstile_entity_view_alter(array &$build, EntityInterface $entity, Ent
// Replace the build array with teaser content
// Keep important metadata from original build (?)
$build = [
- '#cache' => $build['#cache'] ?? [],
+ '#cache' => ['contexts' => ['url']],
'#weight' => $build['#weight'] ?? 0,
];
@@ -174,7 +174,6 @@ function turnstile_entity_view_alter(array &$build, EntityInterface $entity, Ent
'button' => $pay_button,
'#weight' => 10,
];
-
}