Skip to content

Commit

Permalink
Missing cache check in command
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégory SURACI committed Jun 14, 2017
1 parent 3e9fc9c commit 4f912c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function execute(){
$cacheFile = $this->generateKey();

// Command caching
if($this->isGET() && file_exists($cacheFile) && filemtime($cacheFile) > (time() - $this->lifetime)) {
if($this->isGET() && $this->cache === true && file_exists($cacheFile) && filemtime($cacheFile) > (time() - $this->lifetime)) {
$response = file_get_contents($cacheFile);
} else {

Expand Down

0 comments on commit 4f912c1

Please sign in to comment.