You are here

function xautoload_ClassLoader_ApcAggressive::findFile in X Autoload 7.3

Find the file where we expect a class to be defined.

Parameters

string $class: The class to find.

Return value

string File where the class is assumed to be defined.

Overrides xautoload_ClassLoader_ApcCache::findFile

File

lib/ClassLoader/ApcAggressive.php, line 15

Class

xautoload_ClassLoader_ApcAggressive

Code

function findFile($class) {
  if (FALSE === ($file = apc_fetch($this->prefix . $class))) {
    apc_store($this->prefix . $class, $file = parent::findFile($class));
  }
  return $file;
}