public function writePluginConfigCache($cacheFile = null)
{
if (is_null($cacheFile)) {
$cacheFile = $this->getPluginConfigCacheFile();
}
$pluginConfigs = $this->parsePluginConfigs();
if (!file_exists($this['config']['plugin_temp_realdir'])) {
@mkdir($this['config']['plugin_temp_realdir']);
}
$this['monolog']->debug("write plugin config cache", array($pluginConfigs));
return file_put_contents($cacheFile, sprintf('<?php return %s', var_export($pluginConfigs, true)) . ';');
}