Skip to content

Commit

Permalink
MINOR Don't set cookies in CLI mode for Versioned (AIR-75)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Oct 7, 2011
1 parent 6a98615 commit 54b81a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Versioned.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ static function choose_site_stage() {
Versioned::reading_stage("Live");
}

if(!headers_sent()) {
if(!headers_sent() && !Director::is_cli()) {
if(Versioned::current_stage() == 'Live') {
Cookie::set('bypassStaticCache', null, 0, null, null, false, true /* httponly */);
} else {
Expand Down

0 comments on commit 54b81a3

Please sign in to comment.