Fixed cacheability of block plugins.

This commit is contained in:
Simon Wisselink
2023-01-19 23:29:10 +01:00
parent 27dd3e4c57
commit 390f34318d
9 changed files with 80 additions and 14 deletions

View File

@@ -57,8 +57,9 @@ class BCPluginsAdapter extends Base {
return null;
}
$callback = $plugin[0];
$cacheable = (bool) $plugin[1] ?? true;
return new BlockPluginWrapper($callback);
return new BlockPluginWrapper($callback, $cacheable);
}
public function getModifierCallback(string $modifierName) {