SQLite caching - fix error message
This commit is contained in:
parent
4ac95ac24c
commit
9331422a8a
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue