'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.'

def reset(self, route=None):

    if (route is None):
        routes = self.routes
    elif isinstance(route, Route):
        routes = [route]
    else:
        routes = [self.routes[route]]
    for route in routes:
        route.reset()
    if DEBUG:
        for route in routes:
            route.prepare()
    self.trigger_hook('app_reset')
