Skip to content

Conversation

@andrerom
Copy link
Contributor

@andrerom andrerom commented Nov 27, 2017

issue: https://jira.ez.no/browse/EZP-28326

With this bundle, REST HttpCache is not cleared when moving content,
editing content types, (...) And given the time it will take to fix
REST server to return data that can be used for ResponseTaggers and
how this also affects custum responses given, as we now only purge
by specific tags. Adding this is thus safests.

This somewhat brings back what @Plopix suggested in #21, essentially making sure we
add all tags also to X-Location responses by loading location, but to be on the safe
side it does it using sudo() and catching NotFound. Opted not to reuse ReponseTaggers
here as they don't fully fit, and as we want to rewrite this header independently of
if view cache is enabled or not.

cc @mnocon

@andrerom andrerom requested review from adamwojs and vidarl November 27, 2017 09:27
With this bundle, REST HttpCache is not cleared when moving content,
editing content types, (...) And given the time it will take to fix
REST server to return data that can be used for ResponseTaggers and
how this also affects custum responses given, as we now only purge
by specific tags. Adding this is thus safests.

This somewhat brings back what @Plopix suggested in #21, essentially making sure we
add all tags also to X-Location responses by loading location, but to be on the safe
side it does it using sudo() and catching NotFound. Opted not to reuse ReponseTaggers
here as they don't fully fit, and as we want to rewrite this header independently of
if view cache is enabled or not.
@andrerom andrerom force-pushed the EZP-28183-x-location-id-all-tags branch from 9ba0369 to 4e572a8 Compare November 27, 2017 09:33
@andrerom andrerom requested a review from alongosz November 27, 2017 09:42
Copy link
Contributor

@bdunogier bdunogier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given where this is fixed (the XLocationID tagger), having custom code to handle a BC case is a good solution.

Is there a JIRA issue that goes with this ?

@andrerom
Copy link
Contributor Author

andrerom commented Nov 27, 2017

@bdunogier They where found by QA on this one: https://jira.ez.no/browse/EZP-28183 But we can create separate one for this as it is not specific to Varnish., just did that here: https://jira.ez.no/browse/EZP-28326

Note: QA also found this one btw: ezsystems/ezplatform#229

@andrerom andrerom changed the title EZP-28183: Fix REST http cache on move operations (and more) EZP-28326: Http Cache not updated when moving content on Varnish & Symfony Proxy Nov 27, 2017
@andrerom andrerom merged commit f0f3916 into master Nov 27, 2017
@andrerom andrerom deleted the EZP-28183-x-location-id-all-tags branch November 27, 2017 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants