moving cache flush to app start only