-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix EZP-23057: viewContent does not set the X-Location-Id #903
Conversation
A small update to phpdoc above? |
Was it intended to set X-Content-Id perhaps when multi id support will be added? |
Q: What about secondary locations? |
A: cache code should purge on all locations currently afaik. |
+1 |
1 similar comment
+1 |
Untested, but wouldn't there be problems with custom requests, varnish etc?
|
This is viewContent, not viewLocation. But ideally this should set Content-id instead. |
Right now when content is edited, it sends purge commands with all locations, so it will expire correctly viewContent as well. @andrerom are you suggesting we add a new header X-Content-Id and use it for cache expiration? |
I was implying multi id (Content, ContentType, Section...) support yes, and afaik this is planned to be solved in FOSHTTPCacheBundle which we intend to adopt over the summer. |
@gggeek right now, the purge only invalidates page with an actual X-Location-Id header as it purges X-Location-Id: * |
yes, but high traffic multi frontend is supposed to be handled with Varnish. A hammer works badly as a heavy duty breaker.. :) |
Issue tagged to also be back ported to 5.3.2 |
@andrerom will it be included in next release 2014.05.01? |
…on-id Fix EZP-23057: viewContent does not set the X-Location-Id
JIRA: https://jira.ez.no/browse/EZP-23057
Description
The view content action in the view controller does not set the X-Location-Id header preventing the cache from being purged!
(Bug reported by @pborreli)
Tests
manual test