SQLite caching - fix error message

This commit is contained in:
Mark Baker 2013-05-23 22:34:08 +01:00
parent 4ac95ac24c
commit 9331422a8a
2 changed files with 3 additions and 2 deletions

View File

@ -284,7 +284,6 @@ class PHPExcel_CachedObjectStorage_SQLite extends PHPExcel_CachedObjectStorage_C
public function __destruct() {
if (!is_null($this->_DBHandle)) {
$this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName);
sqlite_close($this->_DBHandle);
}
$this->_DBHandle = null;
} // function __destruct()

View File

@ -38,7 +38,9 @@ date_default_timezone_set('Europe/London');
require_once '../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip;
PHPExcel_Settings::setCacheStorageMethod($cacheMethod);
if (!PHPExcel_Settings::setCacheStorageMethod($cacheMethod)) {
die($cacheMethod . " caching method is not available" . EOL);
}
echo date('H:i:s') , " Enable Cell Caching using " , $cacheMethod , " method" , EOL;