-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
25 lines (21 loc) · 1.02 KB
/
Copy pathext_localconf.php
File metadata and controls
25 lines (21 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
defined('TYPO3') or die();
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
// Register rate limiter cache.
// Deliberately NOT in the 'pages' or 'all' groups: a backend "clear cache" must
// not reset rate-limit counters (that would make the limit trivially bypassable).
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['chatbot_ratelimit'] ??= [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::class,
'options' => [
'defaultLifetime' => 120,
],
];
// Fallback TypoScript loading — ensures content-element rendering and the
// global widget injection work even when the site does not declare
// `moinferdi/chatbot` as a dependency in its site-set config.yaml.
// The Site Set in Configuration/Sets/Chatbot/ is the canonical source;
// this import keeps old projects compatible.
ExtensionManagementUtility::addTypoScriptSetup('
@import "EXT:chatbot/Configuration/Sets/Chatbot/setup.typoscript"
');