multinet-app / multinet-server

Multinet server application
https://multinet-app.readthedocs.io
Apache License 2.0
4 stars 2 forks source link

Don't call util.require_db before each request #362

Closed jjnesbitt closed 4 years ago

JackWilb commented 4 years ago

I think we'll want to still call this function to make sure the db is up, but once per request, not several times. @waxlamp had also mentioned that we might cache the result for some time period so that we can reduce the calls even more

jjnesbitt commented 4 years ago

Closed via https://github.com/multinet-app/multinet-server/pull/363/commits/6c588c802d99762d04805a43ebf2e1c12b063f3d