diff --git a/Classes/Command.php b/Classes/Command.php index 8ddbed9..98900ad 100644 --- a/Classes/Command.php +++ b/Classes/Command.php @@ -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 {