question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression on generated cache tags since 2.4.3

See original GitHub issue

Hi folks,

I was tested varnish integration on a branch with 2.4.3 and just constated a difference with my master branch which use 2.4.2. I backport all my changes and everything worked smoothly on 2.4.2, so this seems to be a regresson. Maybe it’s on purpose, but i haven’t seen it here https://github.com/api-platform/core/releases/tag/v2.4.3.

serialization/entity1.yml
   uuid:
     groups:
       - entity1:list
   entity2: 
     groups:
       - entity1:list
   entity3: 
     groups:
       - entity1:list


serialization/entity2.yml
   label: 
     groups:
       - entity1:list
   uuid: 
     groups:
       - entity1:list


serialization/entity3.yml
# nothing related to entity1:list, forcing the use of iri

On both branch, the output json is the same (call on /entity1):

[{
	"entity2": {
		"uuid": "1925bf7f-d719-473b-a1c9-6981f70c4340",
		"label": "toto",
	},
	"entity3": ["/entity3/2fec4ee1-5127-43e1-977f-6995d068aa88"],
	"uuid": "23b11ca6-3cc0-489a-8b13-0c643060ae9a"
}]

But the cache tags sent changes:

on 2.4.2

- entity1/23b11ca6-3cc0-489a-8b13-0c643060ae9a
- entity2/1925bf7f-d719-473b-a1c9-6981f70c4340
- entity3/2fec4ee1-5127-43e1-977f-6995d068aa88
- entity1

on 2.4.3, the entity that indeed have a serialization group lost the corresponding cache tags

- entity1/23b11ca6-3cc0-489a-8b13-0c643060ae9a
- entity3/2fec4ee1-5127-43e1-977f-6995d068aa88
- entity1

It’s very critical, and kind of illogic : I don’t care to invalidate the entity1 entity if I change something on entity3 as the uuid doesnt change but i do really care to invalidate this page if i change my entity2 label because it’s indeed present in the response.

I didn’t got the chance to find wich commit / PR causes this change, but I figured that some of you may have an idea.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bastniccommented, Jul 4, 2019

@teohhanhui done 😉.

1reaction
teohhanhuicommented, Jun 17, 2019

@bastnic Good catch! So, we should unset($context['iri']); when traversing down to the children, if I understand correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decision Trees - RDD-based API - Spark 2.4.3 Documentation
spark.mllib supports decision trees for binary and multiclass classification and for regression, using both continuous and categorical features. The ...
Read more >
[Performance] questions and suggestions · Issue #2593 - GitHub
The cache removal is a very big on/off performance setback. ... Regression on generated cache tags since 2.4.3 api-platform/api-platform# ...
Read more >
Frontend is breaks on magento 2.4.3
I tried refreshing the cache in admin but that didn't fix the issue. I assume that the theme files are not loading but...
Read more >
EhcacheUserGuide-2.4.pdf
Patch contributors generally end up with an author tag in the source they ... Web page caching, for pages generated from databases.
Read more >
GridGain Professional Edition 2.4.3 Release Notes
... Ability to disabled WAL for cache in runtime through IgniteCluster API or ... after rebalancing [#IGNITE-7500]; Web console: incorrect code generation ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found