include_once DIR_CLASSES PHPExcel php cacheMethod PHPExcel_CachedObjec

1
2
3
4
5
6
7
include_once(DIR_CLASSES.'/PHPExcel.php');
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_memcache;
$cacheSettings = array( 'memcacheServer' => 'localhost', 'memcachePort' => 11211, 'cacheTime' => 600 );
PHPExcel_Settings::setCacheStorageMethod($cacheMethod, $cacheSettings);
$objPHPExcel = PHPExcel_IOFactory::load(DIR_PUBLICDATA_SC.'/prices/pricelist.xls');