Added user and document caching (for homepage)