mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-29 16:56:03 +03:00
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() {
|
public function __destruct() {
|
||||||
if (!is_null($this->_DBHandle)) {
|
if (!is_null($this->_DBHandle)) {
|
||||||
$this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName);
|
$this->_DBHandle->queryExec('DROP TABLE kvp_'.$this->_TableName);
|
||||||
sqlite_close($this->_DBHandle);
|
|
||||||
}
|
}
|
||||||
$this->_DBHandle = null;
|
$this->_DBHandle = null;
|
||||||
} // function __destruct()
|
} // function __destruct()
|
||||||
|
@ -38,7 +38,9 @@ date_default_timezone_set('Europe/London');
|
|||||||
require_once '../Classes/PHPExcel.php';
|
require_once '../Classes/PHPExcel.php';
|
||||||
|
|
||||||
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip;
|
$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;
|
echo date('H:i:s') , " Enable Cell Caching using " , $cacheMethod , " method" , EOL;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user