Added public methos flushCache