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:
parent
bcccbd6d8a
commit
b4fc54c308
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user