Skip to content

Commit

Permalink
Unset OBJECT_TO_POPULATE in getCacheKey
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpoulain committed Apr 3, 2020
1 parent 5da141b commit bb99e1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ protected function createChildContext(array $parentContext, $attribute/*, string
*/
private function getCacheKey($format, array $context)
{
unset($context[self::OBJECT_TO_POPULATE]);
unset($context['cache_key']); // avoid artificially different keys
try {
return md5($format.serialize([
Expand Down

0 comments on commit bb99e1c

Please sign in to comment.