JARVIS-411 Added support for flushcache flag