Post by Joe1234 » Thu Jul 25, 2024 9:21 pm

When I use "$this->config->get()", is that doing a database query every time, or is that calling an array of info or something?

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by nonnedelectari » Thu Jul 25, 2024 10:03 pm

Joe1234 wrote:
Thu Jul 25, 2024 9:21 pm
When I use "$this->config->get()", is that doing a database query every time, or is that calling an array of info or something?
Config is an object which is loaded into memeory at the beginning of a request, in framework.php I believe.
So, no, the database is not queried every time you use $this->config->get().

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by Joe1234 » Sat Jul 27, 2024 1:22 am

Thanks

v3.0.4.0 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am

Post by paulfeakins » Tue Jul 30, 2024 10:01 pm

Joe1234 wrote:
Sat Jul 27, 2024 1:22 am
Thanks
If that answers your question, please add [SOLVED] to the start of this topic title.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: jog2le and 17 guests