We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ccbe53 commit 2e20c63Copy full SHA for 2e20c63
Serializer/ItemNormalizer.php
@@ -89,6 +89,8 @@ public function normalize(mixed $object, ?string $format = null, array $context
89
90
if ($this->isCacheKeySafe($context)) {
91
$context['cache_key'] = $this->getCacheKey($format, $context);
92
+ } else {
93
+ $context['cache_key'] = false;
94
}
95
96
unset($context['operation_name'], $context['operation']); // Remove operation and operation_name only when cache key has been created
0 commit comments