admin管理员组

文章数量:1332628

So I am running into issues in Query Monitor - duplicate queries. The reason being that I have functions that need to get say, a customer's order status or the like.

What is the cleanest, correct way to ensure I only make that query once, but can use the results of that query in another function?

Sorry, I know its a very noob question, I just want to start cleaning up code and do things properly.

本文标签: phpBest way to use variables in multiple functions