Skip to content

cache_tree_children should cache access to the parent of each node #221

Closed
orokusaki opened this Issue Nov 21, 2012 · 2 comments

3 participants

@orokusaki

cache_tree_children is a great function to use generally. One thing it's missing, however, is the function of caching each node's parent, which means that you cannot traverse up and down a tree freely without triggering more queries. You can go down, and you can also go straight up in a single query, but you cannot use .parent.

@craigds
Collaborator
craigds commented Nov 21, 2012

Good point, there's really no reason it can't do that

@matthiask
Collaborator

Also closing this issue, the patch has been merged for some time :-)

@matthiask matthiask closed this Sep 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.