concrete5/concrete5 — pull request #271 by christiaan (2011-11-24 12:07:53+00:00)
Title: Reduced the amount of queries on a page that uses attributes

Reduced the amount of queries on a page that uses attributes and not being cached by around 30%.

We have a site we're preparing to ship to a client that makes extensive use of Collection attributes. When not using cache this results in a big number of queries in the 21xx range, by applying this patch I've reduced that amount to around 12xx queries.

Thinking that cache would solve the problem is really a bad idea because by appending ?rand= to any page served by concrete it is possible for a malicious user to fetch dozens of uncached pages effectively generating a lot of load on the server. In my opinion cache should be a feature and not a dependency.