From 938fe184661cc5094f875ae87b9015c7914befa3 Mon Sep 17 00:00:00 2001 From: Ed Finkler Date: Sun, 16 Oct 2011 00:30:05 -0400 Subject: [PATCH] don't use apc_exists, since it is relatively recent addition to pac --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index a4c35ab..faffc2f 100644 --- a/index.php +++ b/index.php @@ -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);