Flush router cache when saving Twitter admin settings: adding/removing keys can enable/disable some actions. This avoids having users' Twitter settings unreachable after adding your keys to an installation with TwitterBridge on but not pre-configured.

This commit is contained in:
Brion Vibber 2010-11-30 12:46:33 -08:00
parent bcccbd6d8a
commit b4fc54c308

View File

@ -133,6 +133,11 @@ class TwitteradminpanelAction extends AdminPanelAction
$config->query('COMMIT'); $config->query('COMMIT');
// Flush the router cache: we may have enabled/disabled bridging,
// which will add or remove some actions.
$cache = Cache::instance();
$cache->delete(Router::cacheKey());
return; return;
} }