def reset(self, route=None):
if route is None: routes = self.routes<EOL>elif isinstance(route, Route): routes = [route]<EOL>else: routes = [self.routes[route]]<EOL>for route in routes: route.reset()<EOL>if DEBUG:<EOL><INDENT>for route in routes: route.prepare()<EOL><DEDENT>self.hooks.trigger('<STR_LIT>')<EOL>
Reset all routes (force plugins to be re-applied) and clear all
            caches. If an ID or route object is given, only that specific route
            is affected.