In root.py, RootController __init__
loops through each neighborhood and binds it. And the bind creates a NeighborhoodController which does a query for the neighborhood. As far as I can tell, it does this for every request. I see two opportunities for improvement:
__init__
method__init__
)The paster command to create new neighborhoods should print out a message explaining that the webserver needs to be restarted for the new neighborhood urls to work.
Diff:
On allura js/4353. If you put a log msg in the NeighborhoodController init, you should see it called only once for each neighborhood in each thread (six messages total on my sb with 3 neighborhoods). Additional reloads after that will not init new NeighborhoodControllers.
Nice.