You are here

public static function PHPExcel_CachedObjectStorage_APC::cacheMethodIsAvailable in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php \PHPExcel_CachedObjectStorage_APC::cacheMethodIsAvailable()

Identify whether the caching method is currently available Some methods are dependent on the availability of certain extensions being enabled in the PHP build

Return value

boolean

Overrides PHPExcel_CachedObjectStorage_CacheBase::cacheMethodIsAvailable

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php, line 284

Class

PHPExcel_CachedObjectStorage_APC
PHPExcel_CachedObjectStorage_APC

Code

public static function cacheMethodIsAvailable() {
  if (!function_exists('apc_store')) {
    return FALSE;
  }
  if (apc_sma_info() === FALSE) {
    return FALSE;
  }
  return TRUE;
}