Skip to content

Commit

Permalink
Fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Sep 18, 2018
1 parent 8b5e082 commit a674378
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Placid/PlacidTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ public function request($something = null)
// Try and get a cached response
$cached_response = $this->cache->get($cacheId);
if ($cached_response) {
return $cached_response;
if (count($cached_response) == count($cached_response, COUNT_RECURSIVE)) {
return $cached_response;
}
return ['response' => $cached_response];
}
}

Expand Down

0 comments on commit a674378

Please sign in to comment.