Skip to content

Commit

Permalink
don't use apc_exists, since it is relatively recent addition to pac
Browse files Browse the repository at this point in the history
  • Loading branch information
funkatron committed Oct 16, 2011
1 parent 17eb95e commit 938fe18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Expand Up @@ -122,8 +122,8 @@ protected function getAssets(array $opts=null) {
$ck = $this->cache_prefix.$url;

// check cache
if (apc_exists($ck)) {
return apc_fetch($ck);
if ($cached = apc_fetch($ck)) {
return $cached;
}

$json = file_get_contents($url);
Expand Down

0 comments on commit 938fe18

Please sign in to comment.