16 lines
500 B
PHP
16 lines
500 B
PHP
|
<?php
|
||
|
|
||
|
require __DIR__ . '/Header.php';
|
||
|
|
||
|
$cacheMethod = \PhpSpreadsheet\CachedObjectStorageFactory::CACHE_TO_SQLITE;
|
||
|
if (\PhpSpreadsheet\Settings::setCacheStorageMethod($cacheMethod)) {
|
||
|
$helper->log('Enable Cell Caching using ' . $cacheMethod . ' method');
|
||
|
} else {
|
||
|
$helper->log('ERROR: Unable to set Cell Caching using ' . $cacheMethod . ' method, reverting to memory');
|
||
|
}
|
||
|
|
||
|
$spreadsheet = require __DIR__ . '/templates/largeSpreadsheet.php';
|
||
|
|
||
|
// Save
|
||
|
$helper->write($spreadsheet, __FILE__);
|