Skip to content

Commit bf24144

Browse files
Merge pull request #1163 from nexcess/devel
Devel
2 parents 6ffc751 + e312e93 commit bf24144

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,12 @@ Magento CE 1.8+ or EE 1.13+, see [these instructions](https://github.com/nexcess
432432

433433
### RELEASE-0.6.8
434434
* [#1065] Added ESI policy for cookie notice block. (@aricwatson)
435+
* [#1066] Fix for crawler lock problem with CM_RedisSession (@jeroenvermeulen )
436+
* [#1072] Scrutinizer Auto-Fixes. (@miguelbalparda)
437+
* [#1078] Fix regex check - blank value passed check. (@aricwatson)
438+
* [#1087] Fixed missing '}' typo #1087. (@aricwatson)
439+
* [#1117] Fix #1100. (@GLips)
440+
* [#1155] Update TECHNICAL_NOTES.md. (@GLips)
441+
442+
### RELEASE-0.6.9
443+

TECHNICAL_NOTES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ESI was originally created so that CDN providers (like Akamai) could serve their
2323
However, actually implementing ESI in Magento is horrendously complicated as Magento doesn't seem to have been designed with rendering just a single block, rather than an entire page, which is needed to serve the actual ESI requests from Varnish. Luckily, Hugues Alary did most of the hard work and made it available in his [Magento-Varnish](https://github.com/huguesalary/Magento-Varnish) extension. The core of how both Magento-Varnish and Turpentine work is:
2424

2525
1. The extension has a [layout file](https://github.com/nexcess/magento-turpentine/blob/master/app/design/frontend/base/default/layout/turpentine_esi.xml) that tells the extension which blocks should be included via ESI.
26-
2. The extension waits for the [`core_block_abstract_to_html_before`](https://github.com/nexcess/magento-turpentine/blob/master/app/code/community/Nexcessnet/Turpentine/etc/config.xml#L183) event to trigger during a request, then [examines the block](https://github.com/nexcess/magento-turpentine/blob/master/app/code/community/Nexcessnet/Turpentine/Model/Observer/Esi.php#L191) the event was fired for and checks whether the block should be included via ESI based on the layout file.
26+
2. The extension waits for the [`core_block_abstract_to_html_before`](https://github.com/nexcess/magento-turpentine/blob/master/app/code/community/Nexcessnet/Turpentine/etc/config.xml#L228) event to trigger during a request, then [examines the block](https://github.com/nexcess/magento-turpentine/blob/master/app/code/community/Nexcessnet/Turpentine/Model/Observer/Esi.php#L220) the event was fired for and checks whether the block should be included via ESI based on the layout file.
2727
3. If the block should be ESI included, the block's normal template is replaced by a [special template](https://github.com/nexcess/magento-turpentine/blob/master/app/design/frontend/base/default/template/turpentine/esi.phtml) with the ESI include tag that signals Varnish to instead pull the block's content from a separate request. A flag is also added to the request to signal to Varnish that the request should have ESI processing run on it.
2828
4. The response finishes and is sent to Varnish, Varnish sees the ESI flag and sends a request to get the ESI content, which is then [rendered](https://github.com/nexcess/magento-turpentine/blob/master/app/code/community/Nexcessnet/Turpentine/controllers/EsiController.php#L58) and sent back to Varnish to be included in the original response.
2929

app/code/community/Nexcessnet/Turpentine/Block/Poll/ActivePoll.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2020
*/
2121

22-
class Nexcessnet_Turpentine_Block_Poll_Activepoll extends Mage_Poll_Block_ActivePoll {
22+
class Nexcessnet_Turpentine_Block_Poll_ActivePoll extends Mage_Poll_Block_ActivePoll {
2323

2424
public function setTemplate($template)
2525
{
2626
$this->_template = $template;
2727
$this->setPollTemplate('turpentine/ajax.phtml', 'poll');
28-
$this->setPollTemplate('turpentine/ajax.phtml', 'results');
28+
$this->setPollTemplate('turpentine/ajax.phtml', 'results');
2929
return $this;
3030
}
3131
}

app/code/community/Nexcessnet/Turpentine/etc/config.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<config>
2121
<modules>
2222
<Nexcessnet_Turpentine>
23-
<version>0.6.8</version>
23+
<version>0.6.9</version>
2424
</Nexcessnet_Turpentine>
2525
</modules>
2626
<default>
@@ -53,9 +53,9 @@
5353
<backend_host>127.0.0.1</backend_host>
5454
<backend_port>8080</backend_port>
5555
<backend_nodes>127.0.0.1:8080</backend_nodes>
56-
<backend_probe_url></backend_probe_url>
56+
<backend_probe_url/>
5757
<backend_nodes_admin>127.0.0.1:8080</backend_nodes_admin>
58-
<backend_probe_url_admin></backend_probe_url_admin>
58+
<backend_probe_url_admin/>
5959
<frontend_timeout>300</frontend_timeout>
6060
<admin_timeout>21600</admin_timeout>
6161
<crawlers>127.0.0.1</crawlers>
@@ -477,7 +477,7 @@
477477
<observers>
478478
<wishlist_index_index_before>
479479
<class>turpentine/observer_esi</class>
480-
><method>hookToAddToWishlistBefore</method>
480+
<method>hookToAddToWishlistBefore</method>
481481
</wishlist_index_index_before>
482482
</observers>
483483
</wishlist_index_index_before>

app/code/community/Nexcessnet/Turpentine/misc/version-4.vcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ sub vcl_deliver {
390390
"; domain=" + regsub(req.http.Host, ":\d+$", "");
391391
} else {
392392
# it's a real user, allow sharing of cookies between stores
393-
if(req.http.Host ~ "{{normalize_cookie_regex}}") {
393+
if (req.http.Host ~ "{{normalize_cookie_regex}}" && "{{normalize_cookie_regex}}" ~ "..") {
394394
set resp.http.Set-Cookie = resp.http.Set-Cookie +
395395
"; domain={{normalize_cookie_target}}";
396396
} else {

0 commit comments

Comments
 (0)