Skip to content

Commit 44d7b76

Browse files
Merge pull request #1503 from nexcess/devel
Release 0.7.4
2 parents e948e9f + 06369d4 commit 44d7b76

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
language: php
22
php:
3-
- 5.3
43
- 5.4
54
- 5.5
65
- 5.6
76

7+
# precise must be used for PHP 5.3
8+
# https://docs.travis-ci.com/user/reference/trusty#PHP-images
9+
matrix:
10+
include:
11+
- php: 5.3
12+
dist: precise
13+
814
addons:
915
apt:
1016
packages:
1117
- python-markdown
1218
- libxml-xpath-perl
1319
- build-essential
20+
- libxml2-utils
1421

1522
script:
1623
- make all

app/code/community/Nexcessnet/Turpentine/Helper/Esi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ public function getFormKeyEsiUrl() {
375375
*/
376376
public function getEsiLayoutBlockNode($layout, $blockName) {
377377
// first try very specific by checking for action setEsiOptions inside block
378-
$blockNode = current($layout->getNode()->xpath(
378+
$blockNode = end($layout->getNode()->xpath(
379379
sprintf('//block[@name=\'%s\'][action[@method=\'setEsiOptions\']]',
380380
$blockName)
381381
));
382382
// fallback: only match name
383383
if ( ! ($blockNode instanceof Mage_Core_Model_Layout_Element)) {
384-
$blockNode = current($layout->getNode()->xpath(
384+
$blockNode = end($layout->getNode()->xpath(
385385
sprintf('//block[@name=\'%s\']', $blockName)
386386
));
387387
}

app/code/community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ protected function _vcl_sub_synth()
971971
$tpl = <<<EOS
972972
sub vcl_synth {
973973
if (resp.status == 999) {
974-
set resp.status = 404;
974+
set resp.status = 503;
975975
set resp.http.Content-Type = "text/html; charset=utf-8";
976976
synthetic({"{{vcl_synth_content}}"});
977977
return (deliver);

app/code/community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Version4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected function _vcl_director($name, $backendOptions) {
165165
* @param array $options extra options for backend
166166
* @return string
167167
*/
168-
protected function _vcl_director_backend($host, $port, $descriptor, $probeUrl = '', $options = array()) {
168+
protected function _vcl_director_backend($host, $port, $descriptor = '', $probeUrl = '', $options = array()) {
169169
$tpl = <<<EOS
170170
backend web{$descriptor} {
171171
.host = "{{host}}";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<config>
2121
<modules>
2222
<Nexcessnet_Turpentine>
23-
<version>0.7.3</version>
23+
<version>0.7.4</version>
2424
</Nexcessnet_Turpentine>
2525
</modules>
2626
<default>

app/design/frontend/base/default/layout/turpentine_esi.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@
455455
<turpentine_cache_flag value="0"/>
456456
</customer_account_confirmation>
457457

458+
<contacts_index_index>
459+
<!-- wholepunching the contactForm block is not enough since the form action is wrong in this case -->
460+
<turpentine_cache_flag value="0"/>
461+
</contacts_index_index>
462+
458463
<!--
459464
<customer_account_edit>
460465
<turpentine_cache_flag value="0"/>

0 commit comments

Comments
 (0)