public static function saveToFile($data, $file) {
		$file = Yii::getAlias($file);
		file_put_contents($file, "<?php\nreturn " . VarDumper::export($data) . ";\n", LOCK_EX);
		self::invalidateScriptCache($file);
	}