Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Only bust cache when debug is set false.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Jones committed Mar 17, 2017
1 parent 3985d39 commit 2bc5f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tasks/BuildAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ public function run(): Robo\Result
$asset_contents .= $this->getCompiler(new SplFileInfo($file))->compile();
}

// If a template file has been set lets update it
if ($this->cachebust === true)
// Bust some cache balls
if ($this->debug === false && $this->cachebust === true)
{
$this->bustCacheBalls($asset_contents);
}
Expand Down

0 comments on commit 2bc5f66

Please sign in to comment.