Added improved possibility to flush Cache