On our site I was finding the function location_load_location was getting called 21+ times with the same request because of various nodes being loaded. To help cut down the 30ms of queries this generated I put a static cache in the function. I have attached a patch.

CommentFileSizeAuthor
add_cache.patch3.56 KBDaemon_Byte

Comments

podarok’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

all feature requests should be rolled against latest 7.x-3.x-dev and after commit can be backported to 6.x branch

Status: Needs review » Needs work

The last submitted patch, add_cache.patch, failed testing.