[Fixed]-Does DjangoCMS open a database connection EACH time a user access a page?

1đź‘Ť

There are different levels of cache’s you might be talking about, you can use any kind of Database Cache by using Cache Databases like Redis, Memcache these can be used to cache the query result from the database itself, so that you don’t have to open and run the query each time.

You have mentioned that every time a page is being rendered a new connection is opening is opened, you may want to use something like Varnish. This can be used to cache the HTTP Response so the query doesn’t even get to the django application. This makes your response way faster since it will be rendered like a static page.

This would improve the application if you have huge number of request’s in a small time frame

👤kt14

0đź‘Ť

Got it!

THIS STATEMENT BELOW IS WRONG

This page explains that you can’t be in “edit_off=false” so I changed to “true” and it worked.

👤user309838

Leave a comment