Use query cached when DB is offline |
I have a system with multiple database, and happen that one of the db is offline. When one db is offline the site return the error and the site not working. How can I do so that they are the cache files query displayed and no errors snack of any kind? Still leaving the website online?
You can try using Query Caching: https://codeigniter.com/user_guide/datab...ching.html
Or use the db failover...
Best regards,
José Postiga Senior Backend Developer
Already I use Query caching. But how can I do so that when one of the db is offline are not shown any errors that block the use of the site? But the query cache are displayed instead?
You should turn db_debug to false, on your database connection configuration. See https://codeigniter.com/user_guide/datab...ation.html
Best regards,
José Postiga Senior Backend Developer
The site also displays this error: mysqli::real_connect(): (HY000/2002): No such file or directory
I can turn them all errors off, but still the site where one of the db is offline displays a blank page. there is not a way to make the site even with an offline db, show the query cache?
|
Welcome Guest, Not a member yet? Register Sign In |