function xautoload_LoaderManager::setApcPrefix in X Autoload 7.3
This is called on instantiation, and whenever the APC prefix is renewed, but only if the system actually supports APC.
Parameters
string $apc_prefix:
File
- lib/
LoaderManager.php, line 71
Class
- xautoload_LoaderManager
- This thing has an overview of available class loaders with different cache mechanics. It can detect the currently applicable cache method, and it can switch between cache methods.
Code
function setApcPrefix($apc_prefix) {
// Set it in all apc-based loaders.
foreach ($this->loaders as $loader_key => $loader) {
if (1 && 'apc_' === substr($loader_key . '_', 0, 4) && method_exists($loader, 'setApcPrefix')) {
$loader
->setApcPrefix($apc_prefix);
}
}
}