public function setSettings($wopi_url)
{
if (!is_null($wopi_url)) {
$this->appConfig->setAppValue('wopi_url', $wopi_url);
}
$richMemCache = \OC::$server->getMemCacheFactory()->create('richdocuments');
$richMemCache->clear('discovery.xml');
$response = array('status' => 'success', 'data' => array('message' => (string) $this->l10n->t('Saved')));
return $response;
}