Skip to content

Commit

Permalink
Merge pull request #959 from craigcarnell/bugfix/generate-session
Browse files Browse the repository at this point in the history
only return pipe when vcl_fix is enabled
  • Loading branch information
miguelbalparda committed Sep 23, 2015
2 parents 97a1714 + a82ba6b commit 835c671
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ protected function _getGenerateSessionEnd() {
* @return string
*/
protected function _getGenerateSession() {
return Mage::getStoreConfig( 'turpentine_varnish/general/vcl_fix' )
? '# call generate_session' : 'call generate_session;';
return Mage::getStoreConfigFlag( 'turpentine_varnish/general/vcl_fix' )
? 'return (pipe);' : 'call generate_session;';
}


Expand Down
3 changes: 1 addition & 2 deletions app/code/community/Nexcessnet/Turpentine/misc/version-3.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ sub vcl_recv {
set req.http.Cookie = "frontend=crawler-session";
} else {
# it's a real user, make up a new session for them
{{generate_session}}# call generate_session;
return (pipe);
{{generate_session}}
}
}
if ({{force_cache_static}} &&
Expand Down
5 changes: 2 additions & 3 deletions app/code/community/Nexcessnet/Turpentine/misc/version-4.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ vcl 4.0;
## Custom C Code

C{
# @source app/code/community/Nexcessnet/Turpentine/misc/uuid.c
// @source app/code/community/Nexcessnet/Turpentine/misc/uuid.c
{{custom_c_code}}
}C

Expand Down Expand Up @@ -175,8 +175,7 @@ sub vcl_recv {
set req.http.Cookie = "frontend=crawler-session";
} else {
# it's a real user, make up a new session for them
{{generate_session}}# call generate_session;
return (pipe);
{{generate_session}}
}
}
if ({{force_cache_static}} &&
Expand Down

0 comments on commit 835c671

Please sign in to comment.