Allow programmatically flush cache for XWikiDocument