16 lines
		
	
	
		
			521 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			521 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| require __DIR__ . '/Header.php';
 | |
| 
 | |
| $cacheMethod = \PhpOffice\PhpSpreadsheet\CachedObjectStorageFactory::CACHE_TO_SQLITE3;
 | |
| if (\PhpOffice\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__);
 | 
