nexcess/magento-turpentine — pull request #460 by paales (2014-03-13 20:41:48+00:00)
Title: ESI  blocks missing when defined in a reference instead of the <block> directly.

First some example XML. We have the following XML in our `page.xml`, nothing special:
```XML

All Pages

(...)

Custom top content

(...)

(...)

```

Somewhere later we have the following XML, please note the reference to the header:
```XML

```

Please note:
- This is non-default XML, normally the `top.links` are defined directly in the header block.
- In this example the `` is in another handle, but the bug still occurs if it is in the same handle (all handles are merged to a single XML document).

With the old code the `top.links` don't show up when logged in (they do show up when logged out, but it doesn't use ESI in that case), with the new code they do show up.

If any more changes to the code are required I'd be happy to make the changes.