|
@@ -19,6 +19,14 @@ class ApcCache implements CacheInterface
|
|
|
|
|
|
public function has($class)
|
|
|
{
|
|
|
+ if (!function_exists('apc_exists')) {
|
|
|
+ $exists = false;
|
|
|
+
|
|
|
+ apc_fetch($this->prefix.$class, $exists);
|
|
|
+
|
|
|
+ return $exists;
|
|
|
+ }
|
|
|
+
|
|
|
return apc_exists($this->prefix.$class);
|
|
|
}
|
|
|
|
|
@@ -31,4 +39,4 @@ class ApcCache implements CacheInterface
|
|
|
{
|
|
|
apc_store($this->prefix.$metadata->getClassName(), $metadata);
|
|
|
}
|
|
|
-}
|
|
|
+}
|