Jump to content

Will db queries for the same field taken only once or every time the field appear on the page?


Juergen
 Share

Recommended Posts

Hello @ all,

I have a general question about how PW deals with db queries.

If I query the same db field multiple times on a page, fe the title field, will  this field be queried only once or for every appearence on the page.

$page->title
......
$page->title
......
......
$page->title

Thanks for you answeres

Link to comment
Share on other sites

Even pages are most of the time queried once and after that cached. And their fields are as well only loaded once on first demand of it, as long as it's not autojoin field, which are automatically loaded with the pages native data (id, template, …).

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...