[ Video Sharing CMS v4 ] improve database connection reliability

Started by dtiberio,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dtiberioTopic starter

every time you make a call to the database, you should:

1. check if the database is still connected
2. if not, reconnect to the database
3. make the db request

if you do this, the database will be far more reliable and you won't have problems with dropped connections. you should do it on every SQL query.

I am having issues on my site where it says there are no videos and then when I reload I see videos, which I am pretty sure is because of the database connection.
  •  

Similar topics (7)