Checkout Progress: Explicit Steps Needed #877
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was doing some varnish troubleshooting for a client, and we ran into a situation, using Magento 1.9.0.1, where the cart checkout progress blocks were not bypassing the varnish cache. We solved this by adding checkout to the turpentine blacklist -- but after investigating a bit I discovered the the approach turpentine takes to exclude checkout progress needs some tweaking. This pull request is lightly tested -- so consider this more a bug report than anything else.
Also, seems related to @craigcarnell's problems in this ticket
#455
The basic problem is the
progressAction
method doesn't do a full layout load (loadLayout
)Instead, it specifically loads only the progress handle it needs
Since
loadLayout
is never called, thecheckout_onepage_progress
handle(s) are never loaded into the layout and can't be applied. This includes the all important handle inturpentine_esi.xml
This pull request attempts a crude fix by being explicit about the progress handles to exclude. Another approach might be a pre-action dispatch listener that manually loads the
checkout_onepage_progress
handle in the layout -- I'm never sure how fancy to get in other people's projects :)