Skip to content

Commit

Permalink
fixup! Added Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan committed Feb 5, 2019
1 parent 25199da commit ce72d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CBX/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function fetchCollection($url) {
}
$data = $this->fetch($url);
if ($data) {
$this->cache->set($url, gettype($data) === "string" ? json_encode($data) : $data);
$this->cache->set($url, gettype($data) === "string" ? $data : json_encode($data));
}
return $data;
}
Expand Down

0 comments on commit ce72d30

Please sign in to comment.