-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
23 lines (18 loc) · 918 Bytes
/
Copy pathext_localconf.php
File metadata and controls
23 lines (18 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
declare(strict_types=1);
\defined('TYPO3') || die();
// Exclude 'format' and 'api_key' parameters from cHash calculation
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'format';
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'api_key';
// Register cache for LLM format output (clean/md)
// This cache stores rendered format output to reduce database load
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['llms_txt_format'] ??= [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
'options' => [
'defaultLifetime' => 86400, // 24 hours
],
'groups' => ['pages'],
];
// Note: Header link is added via Site Set TypoScript (setup.typoscript)
// It includes a condition to hide the link when API key protection is enabled