Search the Community
Showing results for tags 'getinstance'.
-
I use two functions in my custom code lets say function Query and function QueryLang The first one returns db::getInstance()->executeS($sql); In the second one after I prepare my query to include the respective _lang table, I call the first one but in bux fixing when I was doing var_dump($result) it was showing as text and not array. Why?
-
Hello devs, I have a question - I found out that when I changed 3rd param from false Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql, true, false); to true Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql, true, true); then my sql query was generated much more faster. I was looking for answer in prestashop docs but I found information only that i should use this function "if I really know what am I doing" so ... I don't know why and when I should use $use_chache = true in queries. What is defining this? What types of queries I should cache and which I shouldn't. Any help will be helpfull
-
- $use_cache
- mysql
-
(and 3 more)
Tagged with: