1. Go to this page and download the library: Download weakbit/lucene-cache library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
weakbit / lucene-cache example snippets
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages'] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'backend' => \Weakbit\LuceneCache\Cache\Backend\LuceneCacheBackend::class,
'options' => [
'defaultLifetime' => 604800,
'maxBufferedDocs' => 1000,
'compression' => true,
'compressionAlgorithm' => 'zstd', // optional: auto-detects if not set
'compressionMinSize' => 256, // optional: skip compression for small data
],
'groups' => [
'pages',
]
];