Added Option to add custom command for flushing the cache