diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-30 12:46:33 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-30 12:46:33 -0800 |
commit | b4fc54c308936477706acb5cc3c4acae4c3f3a4d (patch) | |
tree | 331b919554c4698bb6b15a61878fed548133eaa0 | |
parent | bcccbd6d8afb8b022d80ca7fa558ac4dbb31d38b (diff) |
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.
-rw-r--r-- | plugins/TwitterBridge/twitteradminpanel.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/twitteradminpanel.php b/plugins/TwitterBridge/twitteradminpanel.php index d05a2c6b3..1a83b47d5 100644 --- a/plugins/TwitterBridge/twitteradminpanel.php +++ b/plugins/TwitterBridge/twitteradminpanel.php @@ -133,6 +133,11 @@ class TwitteradminpanelAction extends AdminPanelAction $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; } |