Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

basvandertogt's avatar

Global query run once

Hello,

I have a queried model based on current subdomain which should be accessible in all views/models/controllers. For now i have placed this query inside the helper class but this way the query is runned every time the helper is called. What is the best approach for this?

Bas

0 likes
0 replies

Please or to participate in this conversation.