Commit Graph

5 Commits

Author SHA1 Message Date
Bharat Mediratta
0fe4398765 whitespace cleanup 2009-04-18 23:07:08 +00:00
Bharat Mediratta
37f9845c43 Revert r19765 -- the installer works fine with it the way it is. 2009-01-20 09:10:49 +00:00
Tim Almdal
383ec9c22c Initialize the model_cache:: as an array and use sub arrays to maintain the cache 2009-01-14 03:22:17 +00:00
Tim Almdal
7305026fd8 make model_cache::get() a static function 2009-01-14 02:34:39 +00:00
Bharat Mediratta
d9e02a5d0c Various optimizations:
o Add model_cache::get() which caches models avoiding duplicate lookups
o Stop using ORM relationships for Item_Model::owner so that we can use caching
o For Item_Model::xxx_edit fields, don't make them editable for guests
o Other minor stuff.

These optimizations reduce the number of queries for a 9-photos page from ~200
to ~45.  Still way too many!
2008-12-16 04:29:00 +00:00