Skip to content
Snippets Groups Projects
Commit ea4d5c53 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Add content data to the rendering view, Only trigger the cache post...

[TASK] Add content data to the rendering view, Only trigger the cache post proc hook if globally called
parent 92e577fe
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,7 @@ class VimeoController extends ActionController {
'showApiResult' => (int) ($this->settings['showApiResult'] ?? 1),
'showTitle' => (int) ($this->settings['showTitle'] ?? 1),
'showDescription' => (int) ($this->settings['showDescription'] ?? 1),
'pluginContentData' => $this->configurationManager->getContentObject()->data
]
);
}
......
......@@ -33,7 +33,9 @@ class ClearCacheHook {
* @return void
*/
public function clearCachePostProc(array $params) {
$registry = GeneralUtility::makeInstance(Registry::class);
$registry->removeAllByNamespace('sg_vimeo');
if (isset($params['cacheCmd']) && $params['cacheCmd'] === 'pages') {
$registry = GeneralUtility::makeInstance(Registry::class);
$registry->removeAllByNamespace('sg_vimeo');
}
}
}
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