I have multiple modules on the same page that is connecting to the same external database through pdo connections inside the modules. The website is getting slower since I added more modules, my guess is that connecting multiple times to the same external db is slowing it down.
Now I want to connect one time to the external db and use this connection in the modules, how do I do this? I also want the website to be able to update without removing my code.
I like to use normal php query instead of the joomla query stuff, that is why I did not open a new connection to the external database with JFactory.
Thanks in advance, LnG