On 29 mar, 00:37, Jumpfroggy <rocketmonk...@gmail.com> wrote: (snip)
> There is no callback mechanism. You can add code to any file > (models.py is a good place), and you can do some tricky python-fu to > make sure it only runs once per process, but that's a bit of a hack. Indeed - and more often than not a good way to get you into more trouble than you'd want. > Also, you might be over-optimizing. The OP was specifically talking about menus built from the db. It just happens that I had the very same problem in my last project - menus built from the db, really complex queries involved, and not much I could optimize here. Rebuilding these (rarely changing) menus on each request would of course be stupid, and the obvious solution here was to cache them... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.