public function dumpSettings()
{
// Если выключена опция кеширования настроек - не выполняем его:
if (defined('\\YII_DEBUG') && \YII_DEBUG === true) {
return true;
}
if (!@file_put_contents($this->_cacheFilePath, '<?php return ' . var_export($this->_config, true) . ';')) {
throw new CException(Yii::t('YupeModule.yupe', 'Error write cached modules setting in {file}...', ['{file}' => $this->_cacheFilePath]));
}
return true;
}