Query Once Use Multiple Times

Hi!

I’m building a LMS and am trying to reduce the number of database queries that occur on the page.

It would be really cool if I could query something using the query loop or dynamic data feature, and then store the returned data as some sort of variable that could then be reused elsewhere on the page.

Perhaps even better would be if the builder just did this automagically, and used the same results for future query loop/dynamic data requests on the same page.

It would also be awesome if we could do a query loop that was based on the browser’s local/session storage!

So in my case, if the related storage key wasn’t set, I’d query the server, and then set the storage key with the data. Future query loop/dynamic data requests from that user’s browser would be served from the browser’s storage.

I just moved from Beaver Builder to Bricks. Loving it so far!

Thanks!

Jake