public function __construct($pluginName = false)
{
if (empty($pluginName)) {
$pluginName = explode('\\', get_class($this));
$pluginName = end($pluginName);
}
$this->pluginName = $pluginName;
$cacheId = 'Plugin' . $pluginName . 'Metadata';
$cache = Cache::getEagerCache();
if ($cache->contains($cacheId)) {
$this->pluginInformation = $cache->fetch($cacheId);
} else {
$this->reloadPluginInformation();
$cache->save($cacheId, $this->pluginInformation);
}
}