I am trying to clear the page cache of drupal as micro invasive as possible by using Cache Expires and custom logic. On each page, the menu is shown down to Level 2 in a footer and a hover area. Therefore I did only rebuild all menu trees and remove pages from cache if an item on the second or first menu level has been changes.
Now we have got an additional menu for mobile devices which is load with each page and shows down to four menu levels. Changing a menu on the first to fourth level would no lead to a clear of almost any pages.
To avoid this, it would be great to put all that menu stuff out of the page html and put in a single file, containing just the menu information in e.g. json format. So if a menu changes I would only need to update the menu file and the changed node.
Are there any smart hacks out there or even modules dealing with that?