/**
* Clear the class path cache
*
* @return bool
*/
public function clearClassPathCache()
{
if (Varien_Autoload::isApcUsed() && php_sapi_name() == 'cli') {
// do frontend call
Mage::log('[ClassPathCache] Doing frontend call.', Zend_Log::INFO, self::LOG_FILE);
$response = file_get_contents($this->getUrl());
if ($response != 'OK') {
Mage::log('[ClassPathCache] Frontend call failed. Response: ' . $response, Zend_Log::INFO, self::LOG_FILE);
return false;
}
}
$this->revalidateCache();
return true;
}