Skip to content
Snippets Groups Projects
Commit 523b34cb authored by Georgi's avatar Georgi
Browse files

[BUGFIX] Fix caching config

parent e4f54578
No related branches found
No related tags found
1 merge request!13Feature frontend filters
......@@ -6,34 +6,26 @@ use SGalinski\SgVimeo\Hooks\LicenceCheckHook;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
ExtensionUtility::configurePlugin(
'SgVimeo',
'Vimeo',
[
VimeoController::class => 'index',
]
);
if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_youtube']['uncached'] ?? FALSE) {
if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_vimeo']['uncached'] ?? FALSE) {
// Uncached version
ExtensionUtility::configurePlugin(
'SgYoutube',
'Youtube',
'SgVimeo',
'Vimeo',
[
YoutubeController::class => 'index',
VimeoController::class => 'index',
],
[
YoutubeController::class => 'index',
],
VimeoController::class => 'index',
]
);
} else {
// Cached version
ExtensionUtility::configurePlugin(
'SgYoutube',
'Youtube',
'SgVimeo',
'Vimeo',
[
YoutubeController::class => 'index',
],
VimeoController::class => 'index',
]
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment