]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Flush router cache when saving Twitter admin settings: adding/removing keys can enabl...
authorBrion Vibber <brion@pobox.com>
Tue, 30 Nov 2010 20:46:33 +0000 (12:46 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 30 Nov 2010 20:46:33 +0000 (12:46 -0800)
plugins/TwitterBridge/twitteradminpanel.php

index d05a2c6b3eef8d61f94e5ee586eb654651a6867a..1a83b47d56eaf1f700bdb9bf97f2b0c3410661a9 100644 (file)
@@ -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;
     }