- return Navigation.objects.get_for_node(self.node, key)
- #if key not in self._cache:
- # try:
- # self._cache[key] = Navigation.objects.get_for_node(self.node, key)
- # except Navigation.DoesNotExist:
- # self._cache[key] = None
- #return self._cache[key]
+ if key not in self._cache:
+ try:
+ self._cache[key] = Navigation.objects.get_for_node(self.node, key)
+ except Navigation.DoesNotExist:
+ self._cache[key] = None
+ return self._cache[key]