Add a cahce of document display titles. Right now you can either use the document name, or load the document and get the display title. First method usually results in CamelCase name, while the second is resource/time consuming.
We should provide a lazy list of document names, which acts like a cache, adding document names as they are requested.
Things to consider:
- Maximum size of the cache (for large sites, like curriki, keeping all the document names in a cache will be almost impossible)
- Efficient refresh methods (use save notifications)
- Translation aware
- Access rights. Should the title of an unaccessible document be readable?
- Write a distinct component, or add more methods to the XWiki monster?