I am about to create a menu for a project of mine, and I need to make a dynamic navigation.
In my Admin back end, I will create a form for URI entry, so that the admins can create links and define the parent of the link and their ordering in relation to other links in the parent. I will be doing this with a MySQL database. The question here is:
Should I go with -
Dynamic menu created from a MySQL query, that would then be converted into an array, and passed into Zend_Navigation
or
- Dynamic menu created from an XML file, that would in turn be created at the moment of MySQL insert, and would therefore be a static file, which would be more easily cacheable
So basically, this is a question of speed and cache-ability. Which one of these would be faster?