Skip to content

Commit

Permalink
Merge pull request #1503 from nexcess/devel
Browse files Browse the repository at this point in the history
Release 0.7.4
  • Loading branch information
miguelbalparda committed Aug 21, 2018
2 parents e948e9f + 06369d4 commit 44d7b76
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6

# precise must be used for PHP 5.3
# https://docs.travis-ci.com/user/reference/trusty#PHP-images
matrix:
include:
- php: 5.3
dist: precise

addons:
apt:
packages:
- python-markdown
- libxml-xpath-perl
- build-essential
- libxml2-utils

script:
- make all
4 changes: 2 additions & 2 deletions app/code/community/Nexcessnet/Turpentine/Helper/Esi.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,13 @@ public function getFormKeyEsiUrl() {
*/
public function getEsiLayoutBlockNode($layout, $blockName) {
// first try very specific by checking for action setEsiOptions inside block
$blockNode = current($layout->getNode()->xpath(
$blockNode = end($layout->getNode()->xpath(
sprintf('//block[@name=\'%s\'][action[@method=\'setEsiOptions\']]',
$blockName)
));
// fallback: only match name
if ( ! ($blockNode instanceof Mage_Core_Model_Layout_Element)) {
$blockNode = current($layout->getNode()->xpath(
$blockNode = end($layout->getNode()->xpath(
sprintf('//block[@name=\'%s\']', $blockName)
));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ protected function _vcl_sub_synth()
$tpl = <<<EOS
sub vcl_synth {
if (resp.status == 999) {
set resp.status = 404;
set resp.status = 503;
set resp.http.Content-Type = "text/html; charset=utf-8";
synthetic({"{{vcl_synth_content}}"});
return (deliver);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected function _vcl_director($name, $backendOptions) {
* @param array $options extra options for backend
* @return string
*/
protected function _vcl_director_backend($host, $port, $descriptor, $probeUrl = '', $options = array()) {
protected function _vcl_director_backend($host, $port, $descriptor = '', $probeUrl = '', $options = array()) {
$tpl = <<<EOS
backend web{$descriptor} {
.host = "{{host}}";
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nexcessnet/Turpentine/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<config>
<modules>
<Nexcessnet_Turpentine>
<version>0.7.3</version>
<version>0.7.4</version>
</Nexcessnet_Turpentine>
</modules>
<default>
Expand Down
5 changes: 5 additions & 0 deletions app/design/frontend/base/default/layout/turpentine_esi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@
<turpentine_cache_flag value="0"/>
</customer_account_confirmation>

<contacts_index_index>
<!-- wholepunching the contactForm block is not enough since the form action is wrong in this case -->
<turpentine_cache_flag value="0"/>
</contacts_index_index>

<!--
<customer_account_edit>
<turpentine_cache_flag value="0"/>
Expand Down

0 comments on commit 44d7b76

Please sign in to comment.